Why does eating more soy foods cause excessive farts?

Soy foods are rich in oligosaccharides, hydrosugar and cotton candy, all of which can produce large amounts of H2 when broken down by intestinal bacteria, so eating too much of them can easily cause bloating and lead to excessive farts.