Credit cards are the OG of rent seeking for the 21'st century. They recognized upfront that no one would pay their ridiculous middleman fees so they backdoor-ed the fee with the merchants and had them pass it on in price. Its on of the most insidious extraction engines ever made, Jesus would definitely flip their tables lol.
Now they do all kinds of accounting tricks to pretend that they have thin profit margins because they split up every part of the business into hundreds of 1-3% chunks of the profit. To sidestep regulation that already barely exists.