It was a huge fucking missile. Only the F-14 was able to physically carry it and it's unique pylon. If adapted to other airframes they might have only been able to carry a single missile. Even the F-14 could only practically carry four of them. If it launched with the max of six and didn't fire any it would have to jettison two before attempting a landing.
The AIM-120 in contrast could be carried by a number of US and allied fighters, had active radar homing (fire and forget), and BVR capability. The latest versions can even match the range of the AIM-54.
The AIM-54 was designed to hit incoming high altitude bombers coming for a carrier battle group outside of the range they could launch nuclear ALCMs. With that job largely obviated by the collapse of the USSR and end of the Cold War there was never much need to keep the system in service.
The danger to carrier battle groups today are lower altitude cruise missiles, opposing fighter/attack aircraft, and UAVs. A missile that really only works well against high altitude targets isn't all that useful.
I guess procurement politics?
But maybe also because the terminal active radar guidance was no longer capable of burning through expected Russian ECM? And in a balancing of "substantially update and redesign" vs "invest elsewhere", long-range fleet missiles weren't a priority in the wake of the USSR's collapse and Russia's economic struggles.