The differential resistor switch disconnects the electrical circuit in case of accidental contacts.
If there is a current dispersion, this device opens the circuit, thus disrupting the current passage.
The fact that there is a dispersion means that something contacts, because the current goes out of the circuit.
This happens when you take the shock and the current comes out of the circuit passing through the body, or because it is passed by a non-working electrical appliance to the ground circuit.
It can also occur in the event of some isolation, often old systems have some dispersion that may cause the differential switch to snap.