Stores need to accept cash regardless, so there’s still some minimal added costs to using cash, but even with the offered discount it’s less than the credit cards...
however if stores stopped accepting credit cards they would quickly find themselves drowning in the same costs that credit cards were invented to avoid.