Earlier quoted context omitted.
> I understand the hope is that companies will comply rather than forego the entire European market, but if they don't, the last consequence is ultimately on the consumer, not the company. Essentially you are asking „why should a government expect anyone to follow the law“
It's more "why should a government expect any foreign company to follow the law". Personally I run a small business, GDPR came out, our solution is to just violate it and not care. They have no legal jurisdiction over us so their laws do not matter. If we had to comply with every jurisdictions special laws on the entire planet we'd surely waste most of our time doing it.
Anecdotally, when GDPR came out, in the old country the, almost, first thing that happened is whole bunch of companies started bothering small businesses saying they are not complying and offering to bring them into compliance by adding cookie warning popup we love so much.