The ultraviolet and visible light causes riboflavin to react with and break down isohumulones, chemicals that contribute to the bitterness of the beer.