Hm… the US is a vast country, so not sure what “local” really means here and local to most is within a 40-mile radius.
Anyway, the above is not true if the job and production methods are obsolete.
What has happened to many US companies is better, more modern production facilities have been built in other parts of the world or other US states, and it simply makes no sense to keep inefficient production plants open. In short, closing a plant with outdated production methods stops known expense and profit drains.
The closed plants frees up capital for new investment in other things, but getting employees to re-train, move, and adopt to a new way is much harder than people think. Thus, there are many new jobs in other states that cannot be filled because the people are not training for them and/or are not moving to take advantage of the opportunity.
Getting employees who have been doing something for 10 - 20 years to change is almost impossible. A very cultural (American) thing in that we like stability and the way things are. Even when offered money, you would be shocked at how many people refuse and do not want to retrain for another job and a higher percentage would refuse to move.
In the past, when I hit this retraining/will not move roadblock, which I have many times, guess what? In comes the foreign workers. In some cases, the foreign workers where actually not as skilled, but I can teach someone a skill. However, I cannot make a product without the necessary number of employees.
(The trade deals made this decision for me in many respects. It just made no sense to pay for employee retraining, moving costs and the like when there is huge tax break for not keeping those employees)
The employment cultural view in other parts of the world is very different. The people are just happy to even have a job, so a company can ask them to retrain, change the production methods and even move the factory a hundreds of miles away and the people just up and move with the company. Can you imagine that in the US people just up and moving with a company? Part of this is that home ownership is so low in other parts of the world, or better said, there is little value placed on the structural home, as it is in the US.
Basically, the affluence of the US has led to behaviors that entrench immobility and culturally other countries are just more adaptive to change. It is not that Americans do not want to do the work; it is often they do not want to do the work elsewhere or in a different way, i.e., do not want to move or do not went to spend the effort learning a new skill. Globally, moving is par for the course for most, as is learning something new - hey, they are just happy to have a job.
In a nutshell, it is very hard to compete with the drive and will of someone who is just happy to have a job, any job. And they do their best to make sure they maintain that job to.