Inflation means some things become economically impossible to produce, that is why the rest of the stuff becomes more expensive.
Prices always lag behind because they are the result of all the economic processes that take place, not the cause, and this is just the beginning of the process.