Originally, beers were bottled in clear glasses. But after exposure to sunlight, the beer’s taste was found to have changed and became skunky. This is because sunlight alters the beer’s flavor. Thus, beer bottles were switched to green and brown.