From what I understand, the card-issuing banks get a cut of the merchant fees, but they're required to provide premium benefits like lounge access.