Here's why:
* Magnetite is a naturally occurring magnetic mineral. It has strong magnetic properties due to its iron oxide composition (Fe3O4).
* Magnetic fields influence compass needles. A compass needle aligns itself with the Earth's magnetic field, pointing towards magnetic North.
* Magnetite's magnetic field can interfere. If a large deposit of magnetite is nearby, its magnetic field can be strong enough to pull the compass needle away from true North, causing a deviation in the reading.
This effect is particularly noticeable in areas with high concentrations of magnetite, like certain iron ore deposits.