Look under any sink and you will find a pipe that dips down and back up — the P-trap. That bend is not a mistake. It always holds a little cup of water, and that water is a door: it lets waste through but blocks sewer gases from floating back up into your home.
If a trap dries out — a guest bathroom nobody uses for months — the door swings open and the drain starts to smell. The fix is wonderfully simple: run the tap for a few seconds and refill the trap.
Traps catch more than gases. A ring that slips down the drain often stops right there in the bend — which is why the trap is the first place a plumber looks, and why it is built to come apart.