Some price hikes are legit due to material costs going up. But these higher costs should be temporary.
But for a lot of it, companies price their goods by "what the market will bear" and they are jacking up prices to see how high they can get away with.