If you were required to write a paper for your history class (or a report for your job) in which you were using dollar valued data across different years, you would

use a price index to remove the effects of inflation to have reliable data measuring changes in the real value of things.