I don't think that you should think of particle conservation as a conservation law in the context of classical physics. As Qmechanic says in a classical system, the particle number is the number of degrees of freedom and is fixed as a definition of the problem. Once we have decided how many particles will be there we can write a Lagrangian, investigate its symmetries and find conserved charges.
In the case of fluid dynamics there is an infinite number of particles. The density which takes the place of the number of particles is a thermodynamic quantity. It's dynamics (and associated conservation laws) is then fixed by the choice of the equation of state. We could imagine a fluid composed of particles that disintegrate when they come in close contact. Then raising the density would cause more disintegration which would in turn lower the density again. The (equilibrium) equation of state would forbid high densities and the continuity equation would have an additional loss term.
Hydrodynamics is basically a list of conservation laws. It however does not know where these come from. In order to write hydrodynamic flow equations we assume that there is an underlying thermodynamic system of particles and that it is described by some Hamiltonian. Every fluid element is however in thermal equilibrium such that there are infinitely many degrees of freedom that are not described by the hydrodynamic equations and can absorb (or emmit) energy, momentum and (if you cook up an appropriate example) particles. That is the origin of viscosity and the reason why we need an additional equation of state to close the hydrodynamic equations. Then we know that the energy and momentum are conserved (because there is an underlying Hamiltonian and we control the forces applied to the system externally) so that we can simply write the conservation laws in terms of the thermodynamics quantities: density, local average velocity, etc. If these quantities are not conserved it is necessary to take this into account by hand by adding proper sources and sinks such as external forces, a rising local entropy density, particle disintegration rates, etc.
The situation is however different in quantum field theory. There particle may be converted to energy and back and we consider systems where the particle number is not fixed. In this case there is a symmetry that generates particle conservation: overall phase rotations. In quantum physics the degrees of freedom are complex numbers. Their overall phase however is not physically observable and does not affect the dynamics. If all the objects of the theory are multiplied by the same complex number of modulus equal to one, the Lagrangian is unaffected. We have a symmetry and the corresponding conservation law is particle conservation (or charge conservation if the particles are charged).
Note that I have not read 'R. Salmon, Hamiltonian Fluid Mechanics, Ann. Rev Fluid. Mech. (1988) 225'. (See the answer of Qmechanic.) I don't know if (and how) it is possible to write a Hamiltonian for fluid dynamics nor if it yields conservation laws. However, even if this is possible, I prefer to think of hydrodynamics as a phenomenological theory which is "guessed" by writing down conservation laws.