battery packs are often structural components, this idea would make that impossible, reducing durability and safety.
not all batteries are identical. there are many different capacities and wear levels. imagine bringing in your new car for electricity and getting an old battery back. the battery is a huge portion of the cost of the car- now you have an old one!