To add to dantheman’s point, a lot of merchants are more than willing to spend 3~5% in fees if it means making a register line 10~15% faster, or reduces the cash stock they need to keep at hand and manage thorough the day.
Privileging cash as a customer isn’t universally better for the merchant.