If salaries grew at the same pace as prices due to inflation, there wouldn't be any problem.
Most governments don't increase salary of the workers even if prices get higher due to inflation and that's the worst thing we all know. Poor people who already earn very little get badly impacted by inflation. That's why it's much better to control inflation rather than increasing wages.