Because opposite magnetic poles attract, the magnetic north pole of the compass points toward the magnetic south pole of the earth.
(opposite magnetic poles; attract; the magnetic north pole of the compass points toward the magnetic south pole of the earth)
opposite magnetic poles
attract
the magnetic north pole of the compass points toward the magnetic south pole of the earth