Most 4 cylinder ice cars will go 300,000 miles on the motor before the motor would need replaced if you take good care of them, and at that point you could drop a new motor in for $5,000 with labor.
These large batteries on the other hand are looking to cost triple that.
Also, there plenty of ice vehicles with original motors on the road that are well over 15+ years old and still run great (I own 3) but even with a new tech lithium battery that can stay good for 2,000 charge cycles, there is NO lithium battery getting cycles put on it or not that doesn't go bad after about 15 years. You're currently guaranteed to need a new battery after that long and since most vehicles are worth $10k or less after they're 15+ years old that leaves the vehicles worth a bit more than scrap.