Because there is an Apple-owned company in Ireland.
And that company makes profits from operations that would be much harder (may be impossible) to setup as a US-based company.
They are billing locally. They have local accounts in which local payments are made.
so no, they have local revenue. Value is created there.