Inflation simply changes the unit of measurement. Anything measured by cash (anything but cash itself) will rise with inflation. More or less, and all else being equal.
I think it's that "all else being equal" part that's tripping you up. Inflation is never the only economic factor at play in a given time period. For instance, stocks did poorly during '74, but that probably had more to do with the oil shock, recession, war, social unrest, and high taxes of the time. Stocks did quite well in the high inflation of the late '90s, when money was cheap and available but there wasn't any recession or oil shortages or confiscatory taxes or malaise.
I also think lots of confusion stems from using CPI increases as a proxy for measuring inflation. But that's a whole 'nother can of worms.