China now graduates almost twice as many STEM PhDs as the US does. A lot of people move after their PhD but they tend to stay in country.
I also think, anecdotally, that new PhDs have a harder time finding a job here.
Overall China just seems to make more effort to attract scientists. They promise, and deliver, the two things scientists care about, funding and academic freedom.