I would argue that a middle classer who bought a car that costs more than a year's salary has piss poor money management.
This very much depends on other cost factors.
The average American right now spends over $2,000 per year on fuel. In Canada it's more like $3,000. Europe is even higher. Electric drastically lowers that cost, making it easier to justify a large initial investment.
Vehicle maintenance is another consideration. Electric in general is supposed to require far less maintenance. On oil changes alone you should save $200+ per year. Reduced break wear thanks to regenerative breaking means you breaks and rotors last longer. And so on.
So say an electric vehicle reduces your annual costs by $1,500, and you keep it for 10 years. That's a saving of $15,000. That makes it much easier to justify "a car that costs more than a years salary", especially it it's amortized over a few years. And with fuel costs constantly increasing, the amount saved is likely to be higher over the long term.