Twice the time of oxygen is burnt than the available CO2 that decreases the air pressure and hence water level rises. The air cools soon after flames go off and the molecules slow down making the water vapor condense to moisture.