I would be surprised if a well-maintained, crash-free electric vehicle in a climate without road salt wouldn't be worth battery replacement.
It's also not the correct economic consideration; you have to compare the value of a used EV vs. that same vehicle with a battery upgrade. If that value is greater than the cost of the battery, that's all you need. High depreciation of new cars makes the upgrade more attractive, actually, if you're considering resale value; upgrading an old car would allow you to avoid the 'off the lot' hit.
This is probably in part due to the UK annual inspection which checks all these things and forces you to fix them.
I agree though that pretty much all the catastrophic scrap-the-car failures are power train related. A lot of modern engines are really, really reliable though, so will happily go for hundreds of thousands of miles without issue.