Salaries go up to match cost of living increases for the area, but your actual cost of living is locked in to a prior rate, so you profit in that way.
your own imputed rent, if you owned your own place is not "locked in".
By living in the property, you are giving up receiving the rent that could've been generated. This means a general rental increase also affects property owners - it's just invisible and often not counted since no money changes hand.