In Germany, the inflation rate is calculated by looking at the development of prices of a set of goods that an average consumer would buy. That will include things like electronics that become cheaper all the time which skews the rate for people who do not buy these goods.
It might be similarly done in the US?
Edit: it seems so: https://en.wikipedia.org/wiki/Market_basket