Capitalism baby, it's not worth it to build a fab in the US, unless they get government money of course, so they can close the doors years later with ton of extra cash to invest somewhere else with cheaper labor, it's an endless loop!
You can probably accurately claim that subsidies and investments are the main things that governments do.