As the battery's useful life is measured in full charge cycles, with only a small contribution from chronological age, leaving the battery at 80% but still connected to power achieves 2 aims: Not leaving it at 100% for long periods of time, and reducing the number of full charge cycles while still powering the phone.