They are a US company, reaping the tax benefits of that nexus. If they'd been an EU company, they would have paid a lot more in various taxes (including higher wage taxes) over the last 40 years. IOW, they would not be as wealthy a company today.
That is true now but has not been true for all of the last 40 years that Apple has been in business. And you're ignoring wage taxes and employee benefits, which are significantly higher in some other nations.