The benefits that McDonals generate dont go to the government. McDonals pays taxes.
The government gets the same benefit from McDonalds that they get from the Federal Reserve. They get a product that they can buy.
Whether that is hamburgers for Congress or dollars for the US Mint. They are both products, paid for by the government to private entities.