A sealed spacecraft turns a joke into a systems risk. Air cannot leak away, so every gram of gas stays inside, including the methane and hydrogen that human intestines produce during digestion.
The hazard is simple and blunt. Flatulence contains methane and sometimes hydrogen, both classic fuel gases in combustion chemistry. Mixed with oxygen and kept within the lower and upper flammability limits, they can ignite from a tiny spark, an exposed contact, or a misbehaving electronic connector. On Earth, diffusion and ventilation dilute these gases into vast room volumes and then into the open atmosphere. In a pressure vessel, volume is fixed, turnover is finite, and every release is added to a closed budget the life support system must constantly manage.
Engineers treat this as a design constraint, not a punchline. Environmental control and life support systems rely on forced convection fans, activated carbon filters, and catalytic oxidizers to scrub trace hydrocarbons, oxidize methane, and keep hydrogen below explosive thresholds. Microgravity removes buoyancy, so warm or light gases do not simply rise and disperse; pockets can linger near surfaces or behind panels until airflow breaks them up. That is why ignition control, strict electrical design standards, and continuous gas monitoring matter even for something as mundane as a fart in orbit.