They print it and they defend its value by providing a legal and defense framework within which the market operates.
If it is better for the economy that quantitative easing happen via cash payouts to the people rather than via capital injections to banks, the government has the purview to do that.