Inflation is the rise in price of every single item for sale across a market, not just the "basket" of goods selected to be a good example, and subject to adjustment and correction over time.
It is entirely possible that inflation that averages out to 10% for a year may double the cost of living for some people, and actually make things cheaper for others.