The metal part is definitely not a magnet. The only thing I can think of is the wires inside the switch sense the metal when the float is touching the black part of the switch.
The new switch has been posted so when it comes we will see what the cracks is.