Building an EV requires metal forging, battery manufacturing, painting, and chip fabrication — all processes that drove Tesla to build in Nevada and Texas.
Tesla's Fremont factory was the former NUMMI plant (GM/Toyota, operating since 1962). It was grandfathered in. When Tesla needed to expand battery production, they built the Gigafactory in Reno, Nevada — not California — because the permitting for battery cell manufacturing was effectively impossible. The Cybertruck factory went to Austin, Texas.