There are some nuances, but the bottom line is it's done to increase longevity of the battery.
If it were always charged to 100%, it would not keep it's capacity for as long as if it's charged to 70%-80%.
Same is true for cellphones, but those have shorter lifespan (and some have replaceable batteries) so nobody really cares.