There are the sensible reasons line voltag and line conditioning and then there are the security reasons like debug attacks. So many different ways to get into a phone.
Stop Using Public USB Ports to Charge Your Phone – https://lifehacker.com/stop-using-public-usb-ports-to-charge-your-phone-1839906505