My point doesn't depend on this tho, measuring inflation by rising prices isn't ideal, because you will be measuring multiple things at once, and only the people lose in that case.
Prices can rise and fall for multiple reasons, and knowing why helps to fix it.
If the price goes up because of a shortage, the increase in price helps stimulate more production.
Governments get the advantage of being able to inflate the money supply to the point were it prevents prices from falling, ensuring easier reelection at the price of the people paying more for things and effectively taxing savers.