Alyssa is taking a walk on a nature path near her neighborhood. She carries a compass with her. As she walks along the path, she notices the needle on the compass is occasionally deflected from its original position. If she has not changed the direction she is walking, what is most likely causing the occasional shift in the needle?