The deviation experienced by a compass needle reveals the action at a distance of the magnetic field.
Magnetic field lines are a useful mean of visually representing the vector nature of the magnetic field. This pattern of lines reveals the symmetry of the magnetic field which would be otherwise hard to depict.