Banks are institutions that have the right to carry out financial intermediation activities. That is, it collects the savings of customers and stores them in exchange for a cost for the service.
The costs of keeping money in a bank, whatever it is, are one of the main methods of financing the bank itself. Above all, the interest that customers pay for applying for a loan or taking out a mortgage, finances banking institutions.