That’s an excellent question and I don’t know the answer.
Various tax incentives have to be involved and I’d guess outright subsidies are also.
They got millions in subsidies in CA they weren't entitled to over that "battery swap" scam.