They went to China because it was cheaper. They went there in detriment of their countrymen that went without jobs, in detriment of the environment (what with all the shipping boom that followed), even in detriment of their own countries, since this would stifle development and industrialization. And they KNEW that technology transfer would follow, because China had made it clear.
No one forced them to do it. They did it knowingly in the name of short and medium-term profit. I’m not even judging if that is bad (I do THINK it’s bad overall, but I’m not arguing it here). I’m just pointing out what happened.
So now the West must not be surprised. And they aren’t! They just need to craft narratives that will paint them in good light.