Right, but at an interest rate that the fed sets…
Why does the interest rate end up being close/near/the same as the overnight lending rate the Fed sets? Because why would anybody want any kind of risk when you can get XYZ interest rate risk free overnight short term?
and fed's function and policy is to follow the market: if inflation is high they increase rate, so at the end market decides through feedback loop
law, specifically Federal Reserve Act.