Bacteria recycling energy stored in fecal matter releases hydrogen sulfide into the air. Disgust at the scent of any of these compounds is as close to a universal human trait as we know. You can think of it as a form of evolutionary pattern recognition: over millions of years of evolution, natural selection hit upon the insight that the presence of hydrogen sulfide molecules in the air was a reasonably good predictor that microbial life-forms that could be dangerous if swallowed were nearby. And so the brain evolved a system for setting off an alarm whenever those molecules were detected.
...more

