Earth’s magnetic north is not static. Like an anchorless buoy pushed by ocean waves, the magnetic field is constantly on the move as liquid iron sloshes around in the planet’s outer core.
Just as you might reach for a magnetic compass to find which way is north or south, birds are thought to have an in-built "living compass". A chemical in the eye that is sensitive to magnetism ...