There’s a saying on Wall Street that the stock market is also a market of stocks: an aggregation of many components often moving to their own beat.
Similarly, the consumer-price index is also an index of prices. Inflation is both the result of total spending running ahead of the economy’s capacity to supply goods and services (macroeconomics), and idiosyncratic behavior in one industry or another (microeconomics).