Why water kept in an earthen pot becomes cool in summer?

Why water kept in an earthen pot becomes cool in summer?