In other words, it doesn't have to be applied across the board to every company at the same rate. If it were, it's unlikely that Apple would have chosen this arrangement with Ireland.
You might argue that the people of Ireland are somehow being hurt by this lower rate of taxation, but the money would have gone to the GOVERNMENT of Ireland, and probably not benefitted the people much at all, except some nominal amount to placate their desires and win popular appeal.
I'm super fringe when it comes to taxes and ethics, though, so... no need to agree with me.
The money would go to the Irish Government, which isn't some African corruption ridden state, so it would have gone on improving things in Ireland.
For example it costs approx €1bn a year to maintain their water supply. As an austerity measure they have had to recently introduce specific water rates rather than cover it from general taxation. This tax bill (if paid at the time it was properly incurred) could have prevented the need for that for a decade or more, and at a time when there was an economic crisis it would have meant consumers having more money available. Instead it can now only be used by the Irish government to pay off their deficit, which is a long term benefit to the Irish people.
Both of these are entirely ethical.
The EU sees dollar signs for its budgets when it imagines how to charge Apple a few billion in fees. Simple as that.