The confusion is that modern commercial banks don’t work like a giant vault. So applying the analogy you described to, say, Wells Fargo, would mislead you about how Wells Fargo works.
You could have a bank that does what you say, but it wouldn’t be able to survive as a commercial institution.