They didn't, the IMF just offers better terms than the free market. And they are still doing their Bitcoin thing, this was just a small concession they were willing to make.
El Salvador has had limited or very expensive access to the bond market for the past years. I thinkneed it, otherwise they wouldn't have made a law to loan money from El Salvador's pension funds with 0% interest.