The directive property of magnet is used to make compass because earth has its own magnetic field and north and south poles. So, when a magnet is held free, it interacts with earth's magnetic field and point in the particular direction no matter where you are.