By absorbing heat energy.
Easy for people to forget what's behind it, when what they see is the practical result.
I love teaching new Burners to spray the water up and let the now finer (and cooler) drops fall back on them. The look of delight, to puzzlement, to delight is priceless.
You should see people try to wrap their head around heat-pipes and latent evaporative pressure, thinking that if populated with water, the pipe's vacuum must make its water boil at 80C, or 50C, or 25C or even 2C.
Then explain that with some heat pipes, they don't use water, and their working substance is not a liquid, but a solid, at room temperature.
Video games are giving kids unrealistic expectations on how many swords they can carry.
... but don't harm the red dragon that frequents the area from time to time. He and I have an agreement.