No thanks to Senator Barry Goldwater.
I don’t know what influence Goldwater had on that, but the “treaty” (Panama signed a completely different version of the document, compared to what the Senate passed) came about during the Carter administration, and became effective in 1999.