The supply isn't fixed. A new plant takes 3-5 years to build and cost tens of billions. DRAM companies don't always know where the demand will be when the next plant completes. 2 years ago there was too much supply so DRAM price hit rock bottom. So DRAM companies held back on investing in new plants so here we are now.