Consider a control volume $\Sigma(t)$ of a fluid with density $\rho(\mathbf x,t)$. The mass inside $\Sigma(t)$ is clearly given by
$$M(t):=\int_{\Sigma(t)}\rho(\mathbf x,t)\text d^3\mathbf x.$$
The way $\Sigma(t)$ is defined is that its mass content doesn't change with time, that is, a control volume is representing the time evolution of a certain amount of mass. Therefore the time derivative of the above integral should be zero. For a small time lapse $\epsilon$, the difference between $M(t)$ and $M(t+\epsilon)$ can be estimated by
$$\int_{\Sigma(t)}\frac{\partial\rho}{\partial t}(\mathbf x,t)\epsilon + \int_{\partial\Sigma(t)}\epsilon\rho(\mathbf x,t)\mathbf v\cdot\hat{\mathbf n}\text dS,$$
where the first term is the integral of the difference of density at different times on the common domain, i.e. intersection, between $\Sigma(t+\epsilon)$ and $\Sigma(t)$, while the second term counts contributions from the bits that are in $\Sigma(t+\epsilon)$ and not in $\Sigma(t)$ and viceversa (the symmetric difference $\Sigma(t+\epsilon)\triangle\Sigma(t)$), whose volume is estimated by $\epsilon\mathbf v\cdot\hat{\mathbf n}\text dS$, $\hat{\mathbf n}$ being the normal to $\partial\Sigma(t)$.
Divide by $\epsilon$ and take the limit $\epsilon\to0$ together with Gauss theorem on the boundary term to conclude that
$$\int_{\Sigma(t)}\left[\frac{\partial\rho}{\partial t}+\nabla\cdot(\rho\mathbf v)\right]\text dV=0$$
for any control volume $\Sigma(t)$, whence the continuity equation.
Physically, the integral form suggests that the continuity equation should be interpreted as relating the density at each point to the flow of matter through a fixed surface. In other terms, consider a fixed (not a control) volume $V$ of fluid. The motion of the fluid will bring some matter in and take some matter out of this volume, thus one can expect the density inside it, at a certain point $\mathbf x$ to change over time. The continuity equation is then saying that
$$\frac{\partial\rho}{\partial t} = - \nabla\cdot(\rho\mathbf v)$$
since the RHS can be interpreted as the flow of the current $\rho\mathbf v$ across the boundary of $V$, we see that the variation of density in time inside $V$ is precisely related to the net flow of matter across the boundary of $V$ itself.
Example If the net flow is outward directed, the flow across the boundary will be positive (by definition of flow, since the velocity vector and the normal to the boundary form an acute angle) and as expected this lead to a drop in density, since the volume $V$ is losing matter.