There are two main reasons why you shouldn’t charge your iPhone in public.
Poor charging quality. Generally, public power supplies are inexpensive and compatible with all devices. As a result, the iPhone overheats more often from such charges, and this has a bad effect on its battery. The same goes for wireless chargers.
Safety. You can bring malware to the phone through the charger. Usually for this, a flash drive with programs is inserted into the cable. True, cases of virus transmission in this way are rare, but they do happen.
Source: Ferra

I am a professional journalist and content creator with extensive experience writing for news websites. I currently work as an author at Gadget Onus, where I specialize in covering hot news topics. My written pieces have been published on some of the biggest media outlets around the world, including The Guardian and BBC News.