China has just developed to the extent that top STEM professionals can have a good quality of life at home. Chinese immigrants were pouring when the US was far less welcoming. The US used to also get hordes of migrants from Europe, Japan, Taiwan, and South Korea before they developed.