Why do window panes fog up from the outside?

The main reason is high humidity and poor ventilation in the rooms.