Retail branch banking is one of the most profitable types of banking.
There are branches everywhere to get as many cheap deposits as possible (most checking accounts are not earning much interest, if any).
Everyone’s behavior on how they use their bank is different, but this is one of the ways that banks simply mint money (i.e. paying 0% for deposits and then loaning them out).
Most branches easily capture enough deposits so that the savings on the money that they have covers their cost of operation.