Earth's North Magnetic Pole acts like a magnetic south pole
The north-pointing end of a compass is attracted toward Earth's North Magnetic Pole because opposite magnetic poles attract. The pole is called north because of where it is on Earth, but magnetically it behaves like a south pole.