Actually they pay about the same commission for cash (yes!) when they take it to the bank.
You have to pay someone to take away the cash and its often slower than tapping your card on a reader.
I have not said that it is not worth it. But it really depends on the business and the arrangement. Some banks charge you a fixed minimum rate making small purchases relatively more expensive for the seller.