Typical arguments against this always end up in "they do lend out their depositors funds" with extra steps.
deposits go to their balance sheets as assets and a liability towards the depositor. Banks do business with their assets and some of that business might put their balance sheet in a position where they can't or won't honor their debt to depositors. At that point whether they "lent out depositor's funds" is philosophical.
[debit loan, credit deposit]
Which creates a loan instrument on the asset side, and creates a matching deposit in the borrower's account. When the borrower repays capital on the loan, the operation is reversed.
Old time banks would have a roughly 1:1 ratio of loans to deposits, these days because banks are also borrowing from other entities, that can ratio can get a bit squirrel.