Why Does My Charger Get Hot While Charging. When I charge my phone from about 50 or below to full. Do I even need to do this.

I left the charger on overnight with nothing on it and by the morning it was 193C while the surrounding area on the wooden table was 172C. Mobile Phones are the most basic need of this time. When I charge my phone from about 50 or below to full.
Of course I bought it in.
If the phone cant handle high wattage input its an issue with the phone. Why does my phone get hot while Charging. During wireless charging or fast charging the device may feel hotter to the touch. I left the charger on overnight with nothing on it and by the morning it was 193C while the surrounding area on the wooden table was 172C.
