When the government borrows in the form of Treasury bonds, it increases the demand for loanable funds. This increases the real rate of interest and reduces the quantity of funds available for private investment opportunities. If the goal is to expand the macroeconomy, the expansion is slowed down by increasing interest rates.