Essential role of the anisotropic magnetic dipole in the anomalous Hall effect