As a multi-talented USAF type (read: active duty and active reserve) I worked in the semiconductor industry for many years. I watched as our production was shifted offshore, and then much of our development, all of our packaging, and then our finances.
Why?
Most folks will say "cheap labor." And while compared to US wages, overseas is often lower, that's not the reason. Production was shifted offshore due to several reasons: first, building a wafer fabrication plant in the USA cost around $2B and took years, if not decades of paperwork, environmental impact, and legal challenges from the "save the INSERT SOMETHING society", etc. When we moved to China, yes the cost of the wafer fab was still well north of $1B however the PRC government exempted the company from corporate taxes (on production, building, wages, etc) for 10 years. And after that, any new facility was exempted for five years. What was the "catch?" We had to hire local labor. In essence, we trained our competition. So even though the corporate name was a US company, China was running it.
Why the finances? Simple: corporate tax rates. The USA corporate tax rates, until the previous administration, were one of the highest in the world. We had to pay 35% of all revenue in corporate taxes. A public company can't survive with that. There are quite a few countries with tax rates that high; and nobody develops there and, subsequently, many of them are third-world doomed. My wife's company moved their financial base from the USA (35% tax rate) to Barbados and Ireland (5.5% and 12.5% respectively) and saw instant profits that they were able to put back into their production (mostly moved from the USA to Thailand: five years tax-free for every new development) and to dividends to their shareholders, which is the number one priority for a public company.
And suddenly, everything was moved offshore. Today? When she goes to hire a new engineer or analyst she has to base them in Asia, Eastern Europe, or Ireland. Why? Lower cost regions.
And suddenly, we're reliant upon other countries...