Earthen pot has a lot of small pores on it through which small quantity of water moves in by surface tension, which moves to the surface of the pot and evaporates, this process carries away heat to the surface and from there to circulating air which helps in keeping the water cool inside the earthen pot.