The government borrows and the fed prints (bonds actually).
The problem being if they raise rates the government (us) pays more in interest or they just borrow more to pay the interest so the deficit gets mega big.
This is what happens when you borrow endlessly. So you let inflation run rampant to keep borrowing costs low.
Pretty sweet eh?