Let me explain how magnets work using analogies that will give you a physical understanding of the phenomena.
Discover other files like this one
Generated image from "A bookshelf with various books - thin paperbacks laying flat, tall encyclopedias standing upright, and a few books precariously balanced on their edges or covers. An invisible force appears to be trying to rotate the books, with the encyclopedias strongly resisting the rotation while the paperbacks easily change orientation." using DALL-E 3 from OpenAI.
Generated image from "A time-lapse of a stadium doing increasingly energetic waves. In the first frame, a perfect grid of glowing points shows almost perfect alignment. As the wave intensifies in subsequent frames, the points become increasingly chaotic and misaligned, eventually showing completely random orientations at the height of the wave's energy." using DALL-E 3 from OpenAI.
Generated image from "A hairy frog" using DALL-E 3 from OpenAI.