The Great Pyramid is aligned to true north within 3 arcminutes. That is 1/20th of a degree.
No magnetic compass points that accurately, because magnetic north moves. The only way to get it is by observing stars, over multiple nights, with instruments nobody has found.
How did they do it with what we're told they had?