We're not talking about "not legally obligated to do it", we're talking about "being legally obligated not to do it". The law forces them to accept cash, they can't just say "I'm gonna impose my own social norms that are above the law."
the equivalent to your example would be them accepting cash even if they don't legally have to. Which is literally the opposite of what they're doing.