The roots of moving manufacturing (and manufacturing jobs) overseas goes back to the '44 Bretton Woods Accords. That's now in process of being reshored, but probably not to the same places they left from. And even once reshoring is done there will be far fewer jobs thanks to both automation (fewer jobs per net unit produced) and demographics (fewer people in the high-consumption age bracket so fewer units needed). The US was never a net exporter (other than grain) and places that might buy new US exports have similar demographic issues plus manufacturing overcapacity (much now from the first, but reshoring will make it more dire).
TL;DR: it's complicated, but it goes back to WWII.