During fermentation, yeast converts sugars into ethanol and carbon dioxide gas. In a closed vessel, the CO2 accumulates and creates pressure since it cannot escape. The pressure is from excess CO2, not oxygen (which would actually be consumed in aerobic respiration).