Not every end product we buy is made in one whole country. We still make a lot of parts and ship them elsewhere for final production. The iphone and their other products are a great example.
Labor is still expensive in this country and as other developing countries come of age the same thing happens and they out source to cheaper labor areas.
Much like how Korea is divided so is China. Part is capitalist, part is the other thing.