Most of those jobs didn’t go to China. They just went.
Automation is killing everything. The displaced do not become software engineers. That just doesn’t work. The 45 year old lady toll collectors displaced by bumper bar code readers didn’t become a software engineer to write bar code reader code.
She’s at home on benefits and it’s not particularly her fault. Not everyone has the IQ for software engineering.
There’s a lot of government intervention in business that makes jobs scarcer. When people and businesses were more flexible, shifts in industries were easier to accommodate.