The US is able to sell debt in the markets. The IMF, on the other hand, generally lends to countries that would have to pay astronomical interest rates if they went to the markets. Not only that, but if I'm not mistaken, the IMF also lent money to India in the wake of COVID.