I wonder if the price of missiles made a difference? ESSM, SeaRam and SM-2 are quite similar these days. I'd prefer to shot a few extra 5 inch shells over an ESSM, other things being equal.
As for gun calibres, I'm still surprised the US limits itself and doesn't have the full range Europe avails itself to via the Italians. I mean, even their supply ships have 76mm guns. It's crazy to think a supply ship outguns a frigate.
Eh, what?!
Yes, RIM-116 (RAM), RIM-156 (SM-2) and RIM-162 (ESSM) are all missiles, but they have different sizes, costs, and capability sets, in some cases the differences and quite notable. Take ESSM (Block I, not sure the exact specs for Block II which entered USN service in ~2020) which can engage targets, including crossing targets, up to ~50 km away from the launching ship. AFAIK, the Italian naval gun/AA system comprising DART/STRALES 76 mm ammunition and gun has been test vs. aerial threats 5+ km from the shooter which is far short of what ESSM can achieve. TBH that tested range is about half what what the RIM-116 RAM can achieve and with a SeaRAM mount having the ability to operate autonomously could potentially be fitted aboard vessels which lack a sufficiently capable CMS to support more complex weapon systems. Interestingly, a RIM-156 (SM-2ER Block IV) has a range of some 200+ km give or take, so quite a bit of variation.
Given how expensive the missiles are, even the comparatively small RAM, I tend to suspect a significant part of the costs involve the electronics which make up the seeker, guidance and control systems, rather than the cost of fabricating the fuel, warhead, or missile bodies/casings.
Regarding the comment about USN frigate getting 'outgunned' by a supply vessel... keep in mind that USN vessels armed with the 57 mm Mk 110 guns like the LCS or upcoming
Constellation-class FFG do not have the gun as their main armament. Rather the gun is to provide an anti-surface, anti-FAC and anti-air capability out to a few km, with the primary weapons systems aboard being something else. I do suppose a supply ship armed with a 76 mm gun and Vulcano rounds for it might be able to engage in anti-shipping, anti-surface and NGFS roles, but I am not certain that a supply ship would ever get fitted with a capable enough CMS and the appropriate data links to be able to make use of these capabilities.