When China has smog issue many in the West point and wave fingers. The truth is, that pollution is The West's. We're just too naive to admit it.
Regardless, the point is, China's env regs are MUCH more lax. So chances are good Product X made in the USA was made with less pollution than the same product made in China.
Yes, pollution is a shared "resources." But some countries are less concerned than others. China is one of those coutries.
The "bonus" is, politicians in the West can claim they cleaned things up at home. Lol. Oh hell no. When the jobs left, so did the (direct) pollution.
Some (Walmart, Apple, HP, Dell) want it as cheap workforce.
Other (Boeing Airbus, GM), want to sell things there.
Some in academy/press wish China can be democratic society.
Some in Military would like to see a strong opponent for another cold war style military build up.
China was able to see all them and sail / leverage along all the competing interests for their own benefits in the last 30 years.