When you plug your phone in to charge, it starts working really hard, kind of like a sprinter who just got the signal to run. The battery is like a sponge that soaks up energy, and when it’s full, it can’t absorb any more. That makes the phone warm, just like how you feel warm after running.