The final answer, so it seems, is that the barrel length was arbitrary, a compromise to satisfy everyone and possibly no-one really. Then it remained because it worked.

In the meantime existing machinery and tooling was used in improvements for economy reasons, such as barrel diameter and taper.