Rain harvesting helps in reducing stormwater runoff, which can lead to erosion and pollution of water bodies. By capturing and storing rainwater, it also helps in replenishing groundwater levels and conserving water resources.