Every fixture connects to the drain through a trap — most commonly the P-trap, whose horizontal outlet suits wall connections. The water seal (typically at least 50 mm deep in Australia) is the only thing standing between your bathroom and the sewer's atmosphere.
Seals are lost by evaporation in unused fixtures, siphonage from poor venting, or leaks — all announced by that unmistakable drain smell.