How the body cools itself
You lose heat four ways: sweating (and the sweat evaporating), radiating heat off your skin, air moving across you, and contact with cooler surfaces. Sweat evaporating is the big one. When humidity is high, sweat can't evaporate, so it just drips and you get almost no cooling out of it.
Heavy work is a heat source too. The harder you push, the more heat your muscles make. Add sun, hot surfaces, and no breeze, and heat piles up faster than your body can move it out.