Why laptop batteries drain and how to extend their life: Optimized Battery Charging and cycle count on a Mac, Windows power settings, maker charge limits.
A laptop's lithium-ion battery is a consumable that holds a little less charge the more you use it. The number of charge cycles and high temperatures are the main things that shorten its life.