Though to be fair CPI is computed nationally and things like housing prices are so localized that it's impossible to come up with a number that makes sense across the whole country anyway.
There are CPIs calculated for each metropolitan area. When I'm considering my savings, for instance, I look at New York-Newark-Jersey City, NY-NJ-PA [1] and New York-Newark-Jersey City [2] statistics.
National CPI is useful if you're planning policy. Local CPI is better for individual planning.
[1] https://fred.stlouisfed.org/series/CUURA101SA0
[2] https://www.bls.gov/regions/new-york-new-jersey/news-release...
Home prices work their way in through owner-imputed rent, i.e. the rent offset by owning the home. Home purchases include a utilitarian portion (the housing) and a speculative portion (the investment gains). We don’t include the stock market in inflation; we similarly don’t include housing prices beyond the housing utility. Nobody has to purchase a home; everyone needs a place to live.
Every study that tries to include housing prices finds an inflation figure lower than CPI [1].
[1] https://seekingalpha.com/article/4173463-cpi-housing-prices
You cannot include for sale housing in the index because the price paid is a speculation/estimate by the buyer (future looking)
Rent is a snapshot of today's price.
CPI includes housing, healthcare and tuition. The basket isn’t fixed, e.g. 1999 CPI didn’t include cell phone data costs.