You're quite right, the circuits must be linked somehow.
Skip this bit if you know how an RCD works. Inside the RCD is a device which detects when the current flowing through the live is not balanced by the current flowing through the neutral. If there is an imbalance for even a few...