Condensation forms when warm, humid air contacts a cold surface. Moisture is in the air all around us and warmer air can hold more moisture. As air cools, it contracts and its moisture condenses.

Source: Condensation and Windows