They creates this mess. This is a perfect "LeopardAteMyFace" situation.
For the last 15 to 20 years car makers have been fighting over themselves to get a foothold into the domestic Chinese market. To do so, the Chinese government required these foreign carmakers partner with a local company. Those local Chinese companies then had access to intellectual property, engineering data, design, planning and a whole host of other internal manufacturing data that was decades ahead of them.
Chinese carmakers were a good 50 years behind the rest of the industrialized world at the turn of the millennium. These days, they are roughly only a few years behind, to actually beijg ahead of them in some ways. All while still having some big labor savings. These Western car makers essentially trained their replacements and they did it for that sweet, sweet short term profit, while the Chinese government was playing the long game.