Because Apple Sales International is a proxy for a US domiciled entity. This is what Apple needs to fix, the EU has correctly pointed this out many years ago, and Apple are dragging their heels on fixing it because it's one way they have of keeping the cash offshore (from the US), but it doesn't change the fact that the profits were not created in Ireland and should not be subject to corporation tax there.