The Bank Gives You Cashback & Rewards On Your Credit Card. So Where Does It Make Money?

You get rewards, cashback, discounts and sometimes even an interest-free loan. So how does a credit-card company still make money from you?