There were real food supply issues in and around the 2022 timeframe (if you recall, some countries had even expressed worry about running out of food), which sent the wholesale price to the moon. Things are back to normal there now.
It’s not surprising that retail reacted to that, and not immediately. Markets can be slow. The end consumer seems to be always the slowest to react, so it is no doubt the residual effects of those events.
Inflation measures the change in value of the currency. This was a change in value of food - the threat of starvation saw people see food as being more valuable. What the parent meant is that it isn’t just inflation alone. Inflation is partially responsible, but not wholly so.