IMO, that's outdated advice from the days before online automatic bookkeeping, before credit card transactions were immediately visible online, before your bank could auto-classify your credit card purchases into spending categories, before configurable spending alerts, before budgeting apps with bank integration, etc.
If you spend cash, you don't benefit from any of that and as soon as you forget about the transaction, it's like it never happened. Nothing will be able to help you retrospectively see where your cash is going. You can lie to yourself about it. Charges on a card statement don't lie.