Grounding provides a safe path for any unwanted electrical discharge—whether from a fault or a surge—to flow directly into the earth. This minimizes the risk of electric shock and reduces the chances of electrical fires.