My experience is different from the OP. The last year I've used cash in the US where there's plenty of poorly paid individuals who need cash in hand and in Germany where credit cards are virtually nonexistent outside of hotels. In Sweden there's no need for cash.
Maybe it's different as a tourist.