CPI is not really a great measure of cost of living.
For example if beef gets too expensive, the basket is updated to include, say, chicken instead.
So, the quality of life goes down, but that's not shown in the CPI.