So everything we think of as a physical interaction is energy fields interacting. When you clap, your hands aren’t quite touching each other, there’s always space between atoms.
Magnets have really strong fields around them that extend their interaction with the physical world farther than we normally experience. The shape of the field can sort of be thought of as Lego.
When you connect a south and north pole of magnets, it’s like clicking together two pieces, they socket together nicely, but trying to connect two north poles would be like trying to jam the tops of two Lego pieces together, they don’t fit and will resist being forced together.
So the magnet kind of has an invisible shape around it that only interacts with other magnetic things.
Latest Answers