I think this is Google's first hit when one searches this, but I do not believe this is correct. Here is a source saying the opposite, as an example.
A liability, in general terms, is something owed to another (e.g., a deposit)
https://courses.lumenlearning.com/wm-macroeconomics/chapter/...
And another more reputable source:
Edit: Seems that this is what's explained in the investopedia article you linked to:
"When someone opens a bank account and makes a cash deposit, he surrenders the legal title to the cash, and it becomes an asset of the bank. In turn, the account is a liability to the bank."
So, I think the person you are responding to is trying to explain the distinction between a bailment and a loan.
Let's pretend that someone had a safety deposit box with $1B at SVB. They'd get to keep the full amount, because that is a bailment. The money never becomes the bank's.
In contract, if someone deposited $1B at SVB, then the actual money becomes the property of SVB. And the depositor then is a creditor to SVB - they have an unsecured load to SVB of that amount. But after SVB gets taken over by the feds, they have to stand in line with the other creditors and get what they get. They aren't guaranteed to be made whole.
"The deposit itself is a liability owed by the bank to the depositor. Bank deposits refer to this liability rather than to the actual funds that have been deposited. When someone opens a bank account and makes a cash deposit, he surrenders the legal title to the cash, and it becomes an asset of the bank. In turn, the account is a liability to the bank."
The ACCOUNT is the liability, the CASH is the asset.
The (say) $100 cash I deposited to the bank becomes both an asset (they have "my" $100 in the vault) and a liability (they own me $100). So the accounting equation still balances.
edit: Judging by a quick downvote trigger-finger, there seems to be some folks having trouble believing this; check this out from the source: https://www.federalreserve.gov/releases/h8/current/ ... look at the category names of where deposits and loans are listed.
The deposit itself is not a liability. The deposit account is. There are many ways to get money into a DDA. The bank will never give you your original paper currency back.