The overall cost of chips is still going down despite inflation: you can get 32GB of DDR5 today for about the same price as 16GB of mid-high end DDR3 10 years ago. Until two years ago, i5s were pretty much flat at $170 since the original's launch despite the i5-10400 being 3-4X as fast.You mean 15 years ago, when a million-dollar house could be bought for $400K, and when mainstream GPUs were made in fabs that cost millions, not billions?
As for housing, the prices are going up because hedge funds are out-bidding each other and hogging the market at alarming rates. Once the hedge fund war ends and hedge funds try to find buyers and renters to monetize their assets, they may discover that their turf war priced themselves out of the market.
The main reason prices are going up at stupid rates now is unchecked greed from all sides ruining everything for normal people.