Are there really laptops where you can't remove the battery when connected? I've never had one that wouldn't keep running when you pull the battery when on ac.
However the reason I know this is the same reason I keep mine in: I've dropped every laptop I've ever owned on the floor multiple times, and I've had one or the other of battery or charger cable fall out at least once for all of them, at least with the battery in the chances of losing power is reduced (though I have on occasion had both fall out at the same time).
Many laptops (such as all current Apple models) have built-in batteries. I guess you could remove the battery with special tools, but putting it back in may require re-gluing things.
However the reason I know this is the same reason I keep mine in: I've dropped every laptop I've ever owned on the floor multiple times, and I've had one or the other of battery or charger cable fall out at least once for all of them, at least with the battery in the chances of losing power is reduced (though I have on occasion had both fall out at the same time).