To say that the energy of the water is mgh is a simplification. It's really 1/2 * h^2 * A * mass density. The water at the top has more energy than the water on the bottom. The energy in the water is square to the water level, but the amount of water is linear.
It's the same with a capacitor, the energy is square to the voltage, but the number of electrons is linear.
It works out to the same 50% because the analogy is just very good. Dividing over two barrels/capacitors means halving the potential level (amount of water/load doesn't change), which means 1/4 of the energy in each barrel.
The energy is proportional to both the height and the mass. The mass is proportional to the height itself. Hence the energy is proportional to the square of the height.
If the fill level is h, so the weighted average of the mass is at h/2,then
Is there some underlying physical explanation of this? Something that says that "in a dynamical system the maximum efficiency can be at most 50%".