If you're very careful you can remove heat with electromagnetic energy.
Think of heat like someone on a rope swing, and electromagnetic energy as a push.
If you time, and angle your pushes very carefully you can slow the person on the swing. But it's much easier to speed them up.
Same with electromagnetic energy.