Cashless societies being progressive leftist movements. It is curious to see one of the most progressive and left leaning states in the entire USA adopt policies which buck the trend. Ditto with leftist progressive california mirroring these anti cashless society paradigms.
I don't suppose they're doing this to make life easier for illegal immigrants who may not have access to debit cards or bank accounts?
No - they're banning cashless retailers because of the very real risk that if credit card terminals are hacked, or the electricity grid is hacked, the whole economy goes down.
In the UK, we've had several instances of banking IT going down, which means no-one can use the cards from the bank. If you have no cash at hand, you can't pay for food and petrol during the downtime.
You must always build fail-safes into a system - and cash is a fail safe.
It is true that some other countries or places, prefer a cashless transaction because they think that it is more secured and safe. Although it is faster and reliable, you can use it whenever and wherever you want if a certain company or shop allows you to access your accounts and use it as a form of payment. That's not even impossible because our technologies are continuously developing for years and we have nothing to do about it. We need to adopt from the advantages of being millennial that all things in our surroundings are easier to use, means "high-tech". But you've said that the only problem in a digital currency is that it is prone in being hacked. You should also make safe transactions and plans to prevent yourself from being scammed while using a card.