It is necessary to limit the pollution of water and hence, waste water is treated in waste water treatment plants to remove the pollutants before the water is let out into rivers, lakes or seas.
http://chokhavatia.com/services/consultancy-services/waste-water-treatment-plants/