EV batteries don't instantly die. After ten years, it'll probably be down 10-20% of its original capacity, which is still drivable but might not work for everyone's commute. In that case, the battery can be potentially refurbished or repurposed for energy storage.
Cars, not just electric ones, have gotten more complex and have software that may need special equipment to diagnose. EVs are simpler and more robust in a number of ways, and might eventually be cheaper to maintain than gas cars once there's enough of them on the road.
I've swapped engines before and it's usually a weekend job costing around $1000-1500 and you essential bring your mileage back down to 0 (assuming you rebuilt the engine before installing).
I could see dropping the battery pack and getting it repaired be a comparable option in the future.
Cars, not just electric ones, have gotten more complex and have software that may need special equipment to diagnose. EVs are simpler and more robust in a number of ways, and might eventually be cheaper to maintain than gas cars once there's enough of them on the road.