I've been doing some work in the galley on my little boat and then wondered about why the kitchen and utility room sinks at home have traps. On the boat the 'grey water' simply goes straight out of a hole in the side with no trap.
All the domestic sink wastes I've ever come across simply have an open ended pipe that discharges into a grid, usually shared with the gutters. So why do they have traps? They're not connected directly into the sewers.