The magnets are close together and the switch is off.
Close = short circuit = create a path for the current.
And the switch and magnet are separated, and the switch is open.
Magnets are usually close to each other, which is normal.
No external power supply is needed, and the GND and N.C ports of wired or alarm control panel are directly connected.