Maxwell’s equations are the fundamental set of integral and differential equations in electromagnetism. In differential form, they’re given by:

The divergence term is given by Gauss’ law, and the curl term is given by Ampere’s law. Under time-invariant (electrostatic, magnetostatic) conditions, the time derivative terms go to 0 and the electric field is irrotational and the magnetic field is source-free, from the Helmholtz decomposition theorem.

Think about the electric field. The field lines radiate out from a positive point charge and enter a negative point charge. For the magnetic field, the field lines rotate around and through a given object. So this intuitively makes some sense.