Because corporations like Walmart and various suppliers decided they could get away with increasing their prices and they blamed it on inflation. Thee isn’t federal law monitoring this.
Employers won’t give raises to match cost of living in those situations.