GPS devices are only as good as the satellites that support them and the batteries that power them. Thus, the compass.
That’s all certainly true.
But even if all that’s working correctly, you can still need a compass if you are moving very slowly for one reason or another.