The Federal Reserve is not the US government. It is a private bank.
See the section "The U.S. Approach to Central Banking" of https://www.federalreserve.gov/aboutthefed/structure-federal... .
Because of its autonomy it doesn't seem to fall well within any of the three classical branches of government, but it sure seems to me like a part of the government nonetheless.