Why Banks Are Eager to Sell You Credit Cards or Personal Loans

I’ve noticed that banks are always offering me credit cards or personal loans, and I’m wondering why they’re so eager to do this. Are there specific reasons behind this push? Do they make more money from credit cards than other types of loans, or is it something else? I’d love to understand the motivation here.