My wild guess is that Cook cut a deal with the IRS so that they build in the US, but get tax benefits other companies don't get, so that it looks good on the administration - like the tariffs are working - and still benefits Apple.
I don't think Apple wouldn't find a cheaper place to manufacture Macs than the US. The US is literally the most expensive place to build.
That, or the Mac Minis are 100% asembled by robots, which is also a possibility.
The IRS can issue Private Letter Rulings (which are anoymized but public so you could check if they treat a company preferentially - although not which company) and Advance Pricing Agreements.
Rulings from different countries are typically used to ensure no taxes are paid. E.g. get a ruling from the US that some activity is taxable in Luxembourg, and then get a ruling from Luxembourg that it's taxable in the US. Like McDonald's did. Either country will then say "well, it's up to the other country to tax that, I'm not policing that". Mostly after a while, multiple companies get clued in and it all gets exposed and the "loophole" is closed. E.g. a uble Irish with a Dutch Sandwich. See https://en.wikipedia.org/wiki/Double_Irish_arrangement
This can be an honest error by one or both tax services, a strategic move (to be a "tax paradise" and prevent other taxable activities from leaving the country), or - one would speculate, allegedly - for political or personal gain.
Legally no, but in practice the president has been trying to assert the power to unilaterally levy taxes, even in spite of the supreme court ruling that you need the legislature to pass a tax. People still paid the tariffs. I would be extremely suprised if that's the only place this admin is trying to tax by fiat, and tax policy enforcemetn is far less visible than consumer tariffs.
Large companies cut deals with the government all the time.
When a large company wants to create a new plant somewhere, they go shopping for what state/city will give them the most favorable tax. Politicians throw in special exemptions, special tax credits, exclusivity contracts, all sorts of things.
We already know exactly what the deal is, no need to speculate. Apple got large tariff exemptions in exchange for supporting Trump's "Made in America" agenda:
No. But you have to understand that American political rhetoric only allows for things to be made either in the US or China (and occasionally Mexico). In that framework, yes the US is the most expensive place to make things.
I don't think Apple wouldn't find a cheaper place to manufacture Macs than the US. The US is literally the most expensive place to build.
That, or the Mac Minis are 100% asembled by robots, which is also a possibility.