The banks have assets that are worth money they can post as collateral to borrow the cash to meet reserve requirements.
Or would you rather have banks unloading massive stacks of treasuries at market close daily to meet their cash needs, creating volatility in bond markets?
Repo lending means banks don’t have to unwind their positions daily due to a cash shortage, because they have other assets they can post as collateral for cash. It’s not a bad thing.