Examples like this make me appreciate the European Union's strict rules around state aid - which do a lot to eliminate beggar-thy-neighbour competition between countries, preserve tax bases to actually provide services and infrastructure to citizens, and hinder companies from playing off country against and city against city.
(That said, they're not perfect - witness Irish tax law as a prominent example)