And cars retain the value of their gas tanks. The difference is that gas tanks very seldom if ever 'wear out' and are $100-500 to replace. Battery packs are a wear item. Even a 100k warranty seems absurd to me. I have 2 cars with over 200k that need no major work. That steps hard on the narrative that eveltric cars need less maintance. If making cars electric means making them diaposible, Id rather petrol, and so would the environment.
I've only had two ICE cars for a significant length of time, and each time I had to replace failed fuel pumps, both times they were located in the gas tank. They certainly seem to wear out more than rarely to me.
For well-engineered EVs, batteries are definitely not a wear item. Especially in a large-battery (i.e. >200mile range) EV, the battery will easily last over 200,000 miles before significant degradation.