Visa has a net income of 50% its revenues. There's a loot of margin for the taking.
Again, the networks take a small fraction of the overall fee, and the vast majority go to entities outside of the card network itself. Take a look at how the merchant discount rate breaks down, and you'll see who the true takers of those processing fees are.
Both are oligopolistic market players that can command price, and then generate outsized profits from their large market share. Both have fat margins, that has nothing to do with how easy that margin is to take away. Average corporate profits (net income) run 10-15%, so any outsized margin beyond that is a good indication that the company is able to generate excess profits through whatever means.