When you deposit money into a bank account, you authorize the bank to lend your money out to other borrowers. The bank will earn interest on that loan, so it will pay you a percentage in exchange.