Cash often refers to Money Market funds and the interest they pay tends to track inflation. There are also ibonds but you can invest a fairly limited amount in them.
I was getting 5% until recently which isn’t that far off of where inflation hit. Of course, as you say, some things are higher although a normal age retired person isn’t that exposed to them.