Why does water leak from air conditioners?

This is due to the fact that when cooling happens the water vapor which comes in contact with the cooling coil cools down and condenses.