Earth‘s magnetic field is tilted a little bit. If we pretend that Earth‘s magnetic field is made by a giant bar magnet, that bar magnet would make an angle with Earth‘s spin axis. That angle is about 11°. That‘s why the magnetic poles and the geographic poles are not in the same place. If you were standing at one of the magnetic poles, the magnetic field lines would be straight up and down. If you were holding a compass and turned it sideways, its needle would aim straight up and down!