When the north pole of a magnet is attracted to the geographic northpole, the poles repel. Why?
The north pole of one magnet attracts the south pole of the other, and vice-versa. One pole of your magnet pointed north; such a pole was originally called a north seeking pole, which was eventually shortened to north pole. When it was discovered that the Earth was a magnet, scientists realized that the north pole of the compass was attracted to the opposite magnetic pole of the Earth.