Electric engines have like 25. Even if that is exaggerated, you can see the point.
It is all about battery technology or some replacement. You don’t throw the car away just because the battery runs out.
Not trying to be an advocate but judging the future based on today’s technology is short sighted.