How does maintaining water quality help ecosystems?

AIt prevents them from becoming deserts.
BIt prevents pollution from poisoning living things.
CIt helps hydroelectric power plants make more electricity.
DIt helps freshwater ecosystems obtain more salt water.