I bet the reason it doesn't work out is greed and that everyone is doing their own incompatible system. Gas/petrol would also not work out if every car brand had their own unique & incompatible composition of fuel.
This is something that governments could solve. Commission a decent swappable battery form-factor and offer tax rebates & incentives to both buyers of compatible vehicles (thus incentivizes manufacturers to make those vehicles) as well as gas stations to adopt the system.
It doesn't have to be perfect performance-wise, if battery swaps take 5 minutes and every gas station supports it, it'll still be good even if the effective range of such battery is half of a custom proprietary one's.
This is something that governments could solve. Commission a decent swappable battery form-factor and offer tax rebates & incentives to both buyers of compatible vehicles (thus incentivizes manufacturers to make those vehicles) as well as gas stations to adopt the system.
It doesn't have to be perfect performance-wise, if battery swaps take 5 minutes and every gas station supports it, it'll still be good even if the effective range of such battery is half of a custom proprietary one's.