Old joke variously attributed to Russia or Argentina during hyperinflation:
Q: What’s cheaper, the bus or a taxi?
A: The taxi, because you don’t have to pay the fare until the end of the ride.
Also keep in mind, most “shit-hole countries” (to coin a phrase) don’t get to borrow money internationally in the local currency - they borrow and must repay in US Dollars and Euros; how they get the money to repay those debts is up to them, not the lender. Defaulting on a loan means that nobody will lend until a means of sorting out previous debt is established. Those fine folk in international banking seem to treat this as a game of musical chairs… Hope their debt is paid before the country runs out of foreign cash and so the next guy is the one stuck with a bad debt. “Negotiating” a solution to default usually involves the creditor taking a discount on repayment - so the community makes up for this with high interest rates so they don’t lose in the long run.
These countries can use assorted tricks to get foreign currency - besides foreign aid, they set absurdly inaccurate exchange rates that are mandatory for visitors or those actually selling stuff abroad - to create a rake-off that the government absconds with. (And conveniently creating a black market in the local currency conversion). Another trick is forbidding foreign accounts and holding foreign cash, thus forcing citizens to convert any holdings - at those mandated exchange rates.
As mentioned above, Mugabe had used the excuse “taking back the land from our white colonial oppressors”. He nationalized the land and instead of giving it to people who needed it and might use it, distributed to cronies and party hangers-on who had better things to do than farm. The white farmers had large spreads and could practice mechanized farming - all this fancy machinery has been rusting to pieces unused now. The local farm hands who might have benefited from the land didn’t get any. Going from mechanized farming to small manually cultivated plots (or worse, no farming) significantly reduced the food produced in-country as well as that which could be exported for hard currency Running a kleptocracy where the government agents could swoop in and take anything of value reduces the incentive to accumulate visible wealth, reducing economic activity and ensuring that people instead hoard valuables (preferably not printed money) for possible hard times coming…
What debts does the government have? Buying all those villas and paying for food for the guards and mistresses is expensive. So many civil servants pretending to work who are the extended family of one minister or another - they get paid in cash printed by the central bank. The government vehicles fill up with gasoline and pay with cash. Ditto when they order paper and toner, etc. Note the word “order”. you decline to fill a government order at your peril, unless your short-term plan involves closing the business and GTFO.