Isn't this what a bank is? The money sitting in your account is not really there, it's being invested by the bank. Bank accounts exist on the gamble that not everyone wants to withdraw money at once.
https://www.bloomberg.com/opinion/articles/2022-11-09/bankma...
tl;dr - the bank can't invest the money in its own stock.