Every modern laptop battery has a micro-controller chip that allows it to keep track of its capacity. Even with this modern integrated technology, batteries are still not smart enough to re-calibrate themselves. This means that if you don’t fully drain your battery to 0% when you’re using the system and recharge it back to 100% when it’s being charged again you could be shortening the laptop battery’s lifespan significantly.
If you don’t use your battery often, it is beneficial to remove it and then recharge it before usage. Most batteries are able to get a few hundred charge/discharge cycles, which means they are suitable for use over the course of a few years for most users. If you are a heavy mobile user you may want to purchase an extended life battery for your laptop.