Inventory management would be a nightmare though, considering the range of physical dimensions, weight, battery specifications etc. Often none of these things are standard even across a single model range let alone the entire industry. When the batteries are often over 1000lbs and large, it’s difficult to carry a range of spares. I’d imagine it also might be a pretty tough job even in the easiest cases for a single roadside mechanic to perform, given the sizes and weights involved.
There’s also the thorny issue of battery health - what if the replacement has more or less charge cycles than the existing battery? This can materially affect the resale value of a vehicle. At least cellphone batteries were tiny and cheap.
The Tesla Model S 100kwh battery is about 1300 lbs, and it's a structural member of the car, so removing it is not a quick operation. That's about 25-30% of the weight of the car, just for the battery. The battery essentially is the floor pan.
Even an 100 mile battery would still weigh something like 400lbs (plus the weight of the support brackets/frame), and it's hard to put that somewhere in the car where it can easily be swapped, and also not make the car handle poorly.
look at smartphone and laptop batteries now compared to 10 years ago. battery swapping used to be a thing when companies were cool with right to repair and independent shops fixing products; not so much now. look up louis rossmann and the way apple dealt with him (spoiler sending customs to take everything under the guise of using fakes)
He's developed carbon only batteries/supercaps that beat Lithium ion batteries by something like double the capacity. Some of what he is working on can be overcharged at high voltage and the cell comes to capacity in a very short amount of time.