Usually these things actually occur due to a race to the bottom, both in corporations - if they don't take the profits now, someone else will - and jurisdictions: regulatory arbitrage and competition occurs, and can make everyone worse off. For example, if one country gives tax incentives, then they all might be forced to; or if one country doesn't regulate pollution, then other countries may be forced to become lax. They're both collective action problems, and some kind of international agreement is generally needed to avoid the worst outcomes.
The EU is probably going to bring a variant of CCTB into effect eventually to avoid this kind of thing between EU economies. It won't be good for Ireland in the short term, but I think it's a better long-term approach, if it's done fairly.