Sounds like legislation has failed then, when credit card companies are effectively forcing people to use credit cards because otherwise they'll have to pay this fee. And if they do use credit cards, they get a fee too.
Businesses issuing credit cards are not forcing people to use credit cards, merchants not offering a lower cash/debit price are encouraging people to use credit cards.
For example, Target in the US gives you 5% off for using ACH (which debits your bank account).
But other retailers, like Walmart and Home Depot, are betting that people spend more if they use a credit card to buy.
Damned if you do, damned if you don't.