Recovering nutrients from wastewater converts drains into profitable sources.
For example Phosphorus is used for fertilisers, animal feed additive, treatment of metals, batteries, fire extinguishers, ...etc.
Other example Ammonia in wastewater is a contaminant and hazardous to the environment. Ammonia in a fuel cell is nonetheless energy dense in volume and comparable to hydrogen in performance.