This has been trialled in modern EVs, but hasn't caught on for three reasons:
* There's no standard battery pack between makes and models.
* It is one of the more expensive components of the car, so operating a business around taking in and giving out extremely expensive equipment is a massive hurdle from a capital investment standpoint, not to mention the equipment to remove and install the batteries - you basically need the equivalent of a mechanic shop or oil-change setup
* Battery packs, as currently designed, are not always fully separable from the rest of the car- cooling systems etc. are not 100% self contained, but may pump heat elsewhere in the vehicle to be radiated off
You're basically asking a company to take on the ownership aspect of the most expensive part of an EV, to accept strangers' batteries and to give out yours in exchange.
To make this possible, major manufacturers would have to agree not only on a standard for their batteries, but also to make the batteries quickly removable.
You're asking consumers to buy a car with a brand new battery in it, then after a few hours of driving to take that battery to a third party service station and give it away for some stranger's battery that may not perform as well.
To be honest, I think if this were the present-day reality, it would eliminate pretty much all of the concerns of buying an electric car- you don't need to add a lot of time to long trips (no worries that super chargers aren't available or operating at peak efficiency), and you don't have to worry that the battery going dead due to a fault renders your vehicle worth less than the cost of a new battery- because the service station that swapped out the battery for you would be on the hook for the cost.
However, I struggle to believe it would be cost effective- your customers can charge their own batteries at home for cheaper than they can exchange them, so they aren't going to be exchanging nearly as frequently as an ICE fills up at a gas station.