Drinking beer from a glass rather than directly from the bottle allows for the beer's gas to be released more naturally, preventing your stomach from feeling bloated. It also helps the aromas to volatilize better, enhancing your perception of the beer's flavor.