I actually did the test at a hospital. It was explained something about during the digestion process, a lack of enzymes to break down the lactose in the digestive system meant that they "fermented" instead due to bacteria and therefore hydrogen was released. Something along those lines but I am not a biologist or doctor or anything so double check!