Answer
Local magnetic fields from steel, current carrying cables, vehicles, or other equipment may be disturbing the compass. Move to a suitable area and follow the manufacturer guidance before flight.
Explanation
GNSS position and magnetic heading are different measurements. A good satellite position does not prove the compass is seeing the Earth's magnetic field correctly.