It is because OpenAI bought 40% of the world’s production capacity overnight. RAM is like toilet paper during Covid now.
The toilet paper thing didn't really happen though because there is so much shit people can produce at a time and the demand never increased if you scaled it to a 2 weeks period. There was enough stock in warehouses that 3 days later every store had a full stock again and the prices never increased.
And also because Korean companies apparently fear US retribution if they start producing DDR4. I don't feel like "OpenAI bought half the supply" tells the entire story when the companies that used to produce DDR4 with the left over machines no longer dare to do so. Probably the prices wouldn't spike as they're doing right now if the ones who used to produce the older RAM generations actually continued doing so.