In the Magnetic poles' article we learnt that magnets have two special ends called poles, and we call them the North pole and the South pole. These names come from how magnets behave when you let them move freely, like in a compass.
A long time ago, people discovered that one end of a free magnet always points toward the North part of the Earth, and the other end points toward the South. So, they decided to name the ends of the magnet North and South to match the directions they point to!
You might wonder: Why not call them East and West instead? That’s because magnets don't naturally point East or West — they always line up with the Earth’s magnetic field, which runs from the north to the south.
So, we stick with North and South because it makes sense with how magnets work with the Earth!