Globalisation is about comparative advantage.
Some of America’s comparative advantages that we see a lot of on HN has been designing chips, online services and financial services etc. Also the defence industrial complex. There are probably more.
In general todays Americans don’t want to work in factories any more, and factory owners don’t want workers these days either: they want robots. Witness all Musk has said about workers being temporary while he gets robots at Tesla since the start etc.