The earth wire provides a low-resistance path for leakage currents to flow into the ground. It protects users from electric shocks by safely directing excess current away from the appliance in case of a fault.