Housing is not included in the CPI. The housing figure is Owner's Equivalent Rent. They survey owners and ask them what they think that they could rent their home for.
They do include actual rent costs, but the weighting for rent costs has 1/3 of the weighting of Owner's Equivalent Rent. The CPI-U provides an tiny weighting of rent compared to the real rent costs for anyone who is actually renting.