The auto industry would rather use its limited assembly line capacity for the highest margin products, which are large luxury internal combustion vehicles.
We have long been in the era of lean manufacturing, where assets like factories are hyper-optimized for returns to capital, not for making products to serve all needs or desires. Why lower your gross margins by investing in more factory capacity to make affordable cars? You'd rather put your capital into the Mag-7 to get a higher rate of return.
It also makes sense because with growing inequality in the US, the well-off (or the financially irresponsible) are the only people who buy new cars anyways, so the manufacturers make cars for them.
This is also a big part of the reason they make EVs (which are disproportionately higher end or luxury): because they know that EV buyers are likely to be more well off. The environmental benefits are secondary, and the auto industry has never cared much about lowering TCO or energy costs (those things benefit the EV driver, not the car manufacturer).