there's usually another drain in the bathroom floor, at least where I'm from
Not common at all in the US though new construction may include them in laundry rooms.
They’re actually a really smart idea and pretty much eliminates the risk of a water source leaking.