Oxygen can be harmful in certain types of fermentation because it can react with the byproducts, potentially leading to off-flavors or spoilage.