They tried and failed already. Lots of reasons why this wouldn't work with cars:
- The battery is expensive and makes up a large chunk of value of the car itself. Being able to swap out a dying years-old battery for a fresh new one doesn't make sense.
- Swapping an electric car's battery is time consuming and requires specialized equipment and labor.
- The real utility for battery swaps for cars isn't in the middle of the city but in remote highway stops, where setting up such stations isn't feasible.