Which is worse luck if you're a business with real unit costs and thin margins like Amazon than if you're selling near zero marginal cost ads or software, but it'd be a lot easier to sympathise with Amazon if they'd paid a bit more than £1.7m in tax in the last year.
Nobody expects the outcome of this to be a local equivalent developing, but they do expect companies to avoid less tax.
Education and healthcare are provided locally "for free", assumed to be covered by taxes. It doesn't work if everything you ever pay or buy is magically transferred abroad and skip tax collection.
Of course, these are basic services provided in most of Europe. It may be seen differently in a different location that doesn't provide these.
This is an attempt at redress.
Economically it does not make sense, if we are looking for a global optimum (literally); this is the standard free-trade argument.
It may make sense if there's no global trust; you don't want to depend on products of a potential unfriendly party, or let them have a large foothold in your economy, just, well, in case.
But here I (also) see the desire to milk a cow that can be milked.