Answer:
Compasses work so effortlessly because their design allows the magnet to respond freely to Earth's magnetic field. Earth itself is like a giant magnet that creates its own magnetic field. The north end of a compass is drawn to align with Earth's magnetic North Pole
...
A compass points north because all magnets have two poles , a north pole and a south pole, and the north pole of one magnet is attracted to the south pole of another magnet. (You may have seen this demonstrated by a pair of simple bar magnets or refrigerator magnets pushed end to end.)