Coming from four-current.
If we reduce one more dimension to simplify we we can get a deeper understanding. Imagine particles moving in a 1-dimensional world, for which we draw a spacetime diagram like this one:
In a little piece of this space (from to , for example), we pass from having 2 particles to having 1 particle at times and respectively. This corresponds to the fact that 2 particles have left the room (to the left) and one has arrived (from the right).
I imagine and like infinitesimal "flow meter devices" that I install on spacetime event to measure how many particles go throw it. Observe that we have a tacit sign convention for depending on the sense you go through the vertical line. At a first glance, this convention is not needed for since time always flows forward. But we can assume a negative density like something travelling backward in time (like Feynman said for positrons).
If we consider that this flow is a vector field with components in Minkowski space, then continuity equation is nothing but the statement
where stands for divergence. Or in a coordinate-free manner, is the 1-form and
Example 4.22 in @olver86.
Perhaps the most graphic physical illustration of the relationship between conserved densities and fluxes comes from the equations of compressible, in-viscid fluid motion. Let represent the spatial coordinates, and the velocity of a fluid particle at position and time . Further let be the density, and the pressure; in the particular case of isentropic (constant entropy) flow, pressure will depend on density alone. The equation of continuity takes the form
where is the spatial divergence. This equation is already in the form of a conservation law, with density and flux . This leads to the integral equation for the conservation of mass
Here is clearly the mass of fluid within the domain , while , with the unit normal to , is the instantaneous mass flux of fluid out of a point on the boundary . Thus we see that the net change in mass inside equals the flux of fluid into . In particular, if the normal component of velocity on vanishes, there is no net change in mass within the domain , and we have a law of conservation of mass: