continuity for charge and mass

What’s the reason why the continuity equation of electrodynamics is linear and the continuity equation of fluid mechanics is nonlinear, despite having an (almost) identical structure?