Car manufacturers are offering some impressive warranties on many electric vehicles. This is because there are so many less mechanical issues with electric motors (compared to petrol or diesel) and significantly less moving parts. This makes electric vehicles less likely to breakdown and more easy to fix, meaning better reliability.
Also, EV batteries have been proven to be very resilient and long-lasting with many degrading very slowly over time. Some manufacturers, like Tesla, are now openly talking (and building) what they call 'million mile' batteries.