Let's recall what we studied in elementary school physics class.
We learned that the needle always points north because the Earth is like one giant magnet.
Earth's geographic North pole, in actuality, exhibits a South magnetic polarity which is why
the compass needle with the North polarization points to the north to show the direction.
This South polarization of the earth is called "magnetic North pole", and the magnetic field generated by the Earth's core is called "Geomagnetism".