^^this deals more with capital structure of firms.
Most of a firm's "capital" is locked up in non-liquid assets, Accounts receivable, inventory, etc. This means that to pay off debts such as salary, purchases, etc. firms need to use credit. Also, it is very, very rare that firms would have enough money to pay for expansion on their own. Only mega-firms such as ones in the S&P 500 have enough equity to pay for their own investments (such as building a new factory, etc). But on average, if Joe's pizzeria wants to buy a new building or add an extension, Joe needs to borrow from the bank.
Also, as I'm learning in finance right now, leveraging (borrowing debt) actually *increases* a firm's Return on Equity, which stockholders like very much. Since every firm's goal (in theory) is to maximize stock value, they will choose the route which will give them and their shareholders the highest ROE. This means they will mix their borrowing from debt and equity.