It’s because there are certain sugars in baked beans that pass through the first bit of our intestine without getting digested by our bodies. Further down the intestine the sugars are fed on by the bacteria that live there. The bacteria feed on the sugars by fermenting them and this fermentation process produces all the gas!
Comments