incomplete breakdown of proteins leave them in your gut. there, bacteria digest them and give off various gasses, which then build up pressure in your system and your body expels them.
did you know that the body is a torus? the entire digestive track is technically on the outside of your body - it is the equivealent of the center of the torus.
I've mentioned that before on here.