can be distributed to single house level (septic tank) or neighborhood level or city level. no reason it has to be a state granted monopoly.
We're talking about cities here. The infrastructure problems compound as the density gets higher. Could be solved with neighborhood co-ops I guess but that's basically a government.