It is a capacitive coupling. Wiring in the walls and your piece of wire form a capacitor, which passes AC current.
You don't even need the wire, you can just touch the tip of the probe with your finger. Your body is full of water and salt, so it is a decent conductor. Again, good enough to couple some AC signal.