Germs create gasses
The odor of flattus is derived from the gas produced by the germs that live in your digestive tract.
Methane is one common product. The character of the odor is influenced by your diet
and the variety of gasses produced by separate bacteria
.The germs live off what is not absorbed during digestion.