The temperature of the liquid is the mass of the average kinetic energy of the molecule. During evaporation, the most energetic molecule escapes from the liquid, leaving behind the less energetic molecule. Hence the remaining temperature reduces leaving to a cooling effort.