Why is indexation done in case of long term capital gain?

In respect of long term capital asset,to neutralize the erosion of value of money over the years the cost index for the year of sale is factored in while calculating the cost of investment so that the impact of inflation is neutralized and only the actual gain to the seller is brought to tax.