The S-trap suits floor-connected wastes and was standard practice for decades. Its vertical outlet makes it more vulnerable to self-siphonage: a fast-emptying basin can suck the trap's own seal out with the last of the water.
Modern standards manage this with venting rules and trap design, but plenty of older S-traps still gurgle and smell for exactly this reason.