Fermentation — a process by which wine is made — releases carbon dioxide, causing bubbles to form in beer and sparkling wine. In champagne and other sparkling wines, they pop, while in beer, they form the beer’s head.