Warm air carries more moisture than cold air. Therefore, when hot and humid air encounters a cold environment, it becomes unable to carry all of the moisture it contains, as its temperature decreases. Thus, it leaves the excess moisture it contains on a cold surface such as a window or eyeglass. Thi..