...and not to mention everything is interconnected in an economy. If food prices rise by x%, there is a cascade effect on the prices of everything, not just groceries.
PS: In the short term inflation and deflation can be caused by a huge range of effects, but in the long term it’s bound by government spending and taxation.