give a scientific reason for why perspiring is a mechanism for cooling the body

When sweat evaporates, heat is removed from the skin. That heat energy givewn up by the skin is needed to covert water from a liquid to a vapor.