A company that builds a robotic factory from scratch and that only makes electric cars will be able to make cheaper cars than one who already has a huge headcount of combustion car workers. Auto workers are unionised and often working in factories bound by political agreements. You can't just close the combustion engine plant or reeducate everyone to make electric engines, it's years of negotiations.
If you start from scratch you don't have that problem, and you don't need to include that cost into the price of your cars.
That said, it makes perfect sense for a civilised society to protect their workers while they are reeducated and reassigned to new work by blocking foreign competition. But only for a while, while going all-in on the required changes.
Reality can't be ignored forever.