Answer
GNSS position and magnetic heading come from different sources. Steel reinforcement or nearby electrical equipment can disturb the compass while satellite positioning remains good.
Explanation
A strong position solution does not validate magnetic heading. The pilot needs to evaluate each navigation source on its own terms.