Phosphorus removal prevents eutrophication, which harms aquatic ecosystems by promoting excessive algae growth and depleting oxygen levels.