You can get a used Leaf for $5-10k very easily, and it'll still have several years left on the warranty.
https://www.sdge.com/clean-energy/electric-vehicles/10000-me...
https://cleantechnica.com/2016/12/15/get-new-nissan-leaf-low...
Japanese cars don't depreciate as much as other cars, in general, but the Nissan Leaf has terrible resale value. So do some of the other all-electric cars, like the Fiat 500e. I suspect the prospective buyers are worried about the battery going bad or losing capacity over time. That would be very expensive to fix without a warranty.
The primary maintenance cost for the EV is the battery, and battery warranties are pretty generous to decrease people's anxiety about them.