a ten million dollar machine missing a 45 cent part probably costs a few hundred thousand to redesign around that part. a mass market vehicle that needs multiple of those part per SKU would be cheaper to re-engineer
And now you have not one but 2-3 chips that are in demand and price rises for those too.
Also in case of cars and similar equipment there would be a bunch of re-testing required so that drives cost of reengineering hard.
Especially if said part was used as "jellybean" across a lot of modules just because it's cheaper to buy same part in bulk
there is also the option of the buyer just saying 'nope, not worth it', and cancelling the product line the chip was bound for, which would be worse for the chip manufacturer who just sunk millions into producing the part
it's an intricate balance :) regulatory bodies aren't fans of price gouging either, and might step in if the delta is actually that drastic (tangential but relevant https://en.wikipedia.org/wiki/Martin_Shkreli#Daraprim_price-...)
If you raise your prices too much, people will switch to competitors. This means that nobody is buying your product, so you'll never get to recoup the engineering expenses. Even worse, you'll become known as a manufacturer with unreliable pricing, making your chips very unattractive for new designs.
Having a steady and well-known demand might be a lot more valuable than the short-term profit you can squeeze out of the current shortage.