That's the standard warranty period provided by many manufacturers. That doesn't mean they are going to suddenly fail after that point. How long is the usual warranty on an ICE engine? Ignoring some of the newer marques like Kia/Hyundai and MG, isn't it 3 years? And yet, there are plenty of cars much older than that on the road still going strong. How very strange.
Absolutely true, they are more polluting to produce than ICE cars, and it takes almost 15-20k* miles to break even! Wait, that's only 2-3 years at the UK average of 7,400 - anything after that point is a net benefit.
You will also find Teslas and other EVs older than that on the original battery, and ICE cars which have had their engine replaced after a couple of years, I'm not sure what point you think you are trying to make?
You're also conveniently ignoring the fact that unless the battery has actually failed catastrophically, the usual "failure" mode of an EV battery is capacity reduced beyond what is deemed feasible for the car (usually around 70%), and they still have a useful life as energy storage outside of vehicle use. Tell me, what is the useful purpose of a trashed engine after it has been replaced?
* obviously dependent on how the electricity is generated.