Drainage pipe carries loads, not just water. A toilet, a shower and a washer each contribute a drainage fixture unit value, and the pipe must be big enough - and sloped enough - to carry the combined load without backing up.
Drain Pipe Size Calculator picks a minimum DWV pipe size from your fixture load (DFU), the pipe context and slope, using typical IPC capacity tables.