A good chunk of the debt (~9 trillion) is owned by the Fed itself. When the bank finances a mortgage for example, because it is a fractional reserve system the bank is lending only a small fraction of its own capital. The bank simply borrows from the fed either directly or indirectly by selling. The bank's profit is that the mortgage interest rate on the mortgage (and risk) is higher than that of the risk free borrow rate.