Debt for consumption is generally bad.
Debt for producing something of value is generally good.
That's what puts the "capital" in capitalism.
And in this case, it can enable many poor nations that have great wealth in natural resources to become players in the global economy.