Because a compass is based upon a magnet the needle can be affected by magnetic fields and materials such as iron. For instance your belt buckle, a zip, karibiner. Even mineral deposits in the ground can offset your compass. Don't just look down either. Look around and above you. Sitting under a power line or near an electric motor will not do you any favours.