It’s not just Ireland, almost all (if not all?) EU counties do it:
https://europa.eu/youreurope/citizens/work/taxes/income-taxe...
You mentioned Estonia in another comment - it might be the case that Estonia is a special case or has a scheme for attracting talent that doesn’t include worldwide tax