Why does evaporation cause cooling?

In evaporation, because escaping molecules have higher kinetic energy, hence the average kinetic energy of the molecules left behind decreases. As average kinetic energy is directly related with temperature, hence evaporation causes cooling.