The requirements were largely imposed externally. The gun was basically required by the Marine lobby in Congress to support the Corps' NGFS "need" -- it's a combo of the requirement to counterbattery Russian D-30 howitzers firing at beach crossing point while staying far enough offshore to have some reaction time against ASCMs. The Navy had a (likely) more viable alternative to do that, in the form of Vertical Gun for Advanced Ships (VGAS), but Congress demanded a trainable gun for SuW. A better solution might have been VGAS plus a 5-inch gun, but that didn't happen for various reasons.