"phones charge to 100% even though that's bad for the battery" is incorrect, the nominal 100% is significantly below max charge. It also adjusts downward as the battery ages.
These parameters are chosen so that the battery lasts for the design life that the manufacturer targets