Why only thinking about phones? There is a full range of devices to be loaded, some with some without battery management. Btw I saw some iPhone and android on work blowing up because of Loading the whole day. So also modern deices can have problems. Only a low percentage maybe but there is a chance. And another escape could be saving power, I have a bunch of devices loading here, cameras, copter, phones, tablet, laptops and other things. And if they would load the whole day it cost extra power and money.
Also on the way I do not care for devices maybe loading at home because they shut off the switch if they do not need anymore.
And if you do not have a need for it fine, I had and wanted to share that piece of code.
Same would be, why is there an automation telling you that dishwasher is done when you can hear it beep next to you. Because not everyone has it near to hear or forget it sometimes behind the closed door.