China has supported key industries (like EVs, batteries, solar, semiconductors) that it views as strategic. Each country should do the same for their own situation. There is no such thing as pure capitalism- and what you see is 'protectionism' is to a lawmaker a way to ensure that the local company survives and provides jobs for the local region/state, etc.
And as the other commenter mentioned, auto manufacturing plants were retooled to make tanks and jeeps in WW2 and so no country that cares about their own military survival should cede auto manufacturing to another country, let alone China.