- it needs to be manually reconciled at the start/end of each shift
- staff can steal it
- robbers can steal it
- it takes time to count out change (and to ensure you have enough small bills and coins)
- it takes time to deposit it at the bank
- it costs money to deposit it at the bank (even if Walmart is ok accepting cash for an iPad, I'm guessing Apple requires Walmart to pay by bank transfer)
I'm not sure about the US situation but, the last time I checked, UK banks charged 0.3%-0.5% for accepting a cash deposit from a business customer.
Also, in some countries it is very easy to lock person's bank account even without a trial, for example if person is suspected in financing terrorist or extremist organisation.
Also new cards have RFID chip in it and it can be used for example to get information about people going through the doors.
https://squareup.com/us/en/making-change
(I work for square but wasn’t involved with this project)
Unfortunately this is not the world we're living in :) it's often both cash and cards OR just cash. Berlin is a really good example of that, you always need cash on you which tricks the many tourists who come from countries were cash is not really a thing anymore.