This is the big problem with electric cars: Once the powertrain warranty is out, the value of the car is pretty much zero. Gas engines can go 200k miles and can be fixed without a full replacement.
I remember in 2005 the roads were full of Gen 1 Priuses. Then they started to just disappear, and now I doubt anyone has seem one in years. Why? Battery pack blowing out and while you can swap it for a couple of thousand, most people just junked em.
It's a problem.