EU is to blame
Amazon is just complying with the way the EU was set up. That biz pay tax in one location for all and the idea was that all members would "harmonise" their tax levels to be the same. Small countries like Ireland and Luxemburg have long said F that and set low tax rates to effectively steal tax revenue from larger members just as the UK.
Amazon is just doing exactly what the present EU setup is intended to do, funnel a tiny tax rate for the whole EU into Ireland and Luxemburg.