The continuity equation can be derived from Maxwell's Equations. This says that the divergence of the electric current density is equal to the time-rate of charge ...
maxwells-equations.com