That’s an Air Pressure thing. We got trained on that in USAF flight school, and were even WARNED, a week in advance, to lay off the gas-producing foods before we did our week at the Altitude Chamber. . . .
And, especially in case of a rapid decompression. Way back in the 1980s, when I flew B-52s, we lost a cockpit window (luckily, a side window) at 42,000 feet. Even AFTER we descended to 8K, and could get off oxygen, the place smelled REALLY bad. . .