Nobody forces you to accept this. I say this as a European that actually worked some years in China. I was extremely privileged as engineer and manager as I was making China wealthier.
That is not different than Britain hiring the best engineers of the Netherlands(where industrial revolution started) and giving them a good life if they improved the country, until they did not need them anymore of course.
The USA did the same thing later with Britain, pirating their industrial machinery, even as it was punished with death.
Nor any different from the USA accepting Einstein, von Braun, Sergey Brin, or Elon Musk and giving them the opportunities they lacked in their original places.
But in China it is not so much about "secrets" but culture, West culture has evolved from 500 years of extreme changes thanks to Gutenberg press.
If you read "The prince" Machiavelli says extreme changes are happening today(in 16th century). Napoleon reads it and say:those changes are nothing compared with those happening today(in 19th century).
When you live in China you realize all those accumulated changes were not done at all, as culture was very well controlled so the masses could not access to it. So a revolution happened but inner change of the culture takes time.
You say China improving is terrifying. What is terrifying for me that is the extreme differences in poverty in the world. People in poor countries like China are hungry to get out of poverty while people in the west feel entitled to wealth even when the only thing they have done is being born privileged.
I travel to Africa frequently as a reminder of all how rich we are and giving value to things we ignore as we take for granted.