Because of the proportion of the two critical component increases as a part of the whole. It's not like a screw, more like the propeller or something. I just bought ram at retail price, and in my currency it went from $100 to $600CAD for 32Gb. I can't even justify a nvme drive at this point, the prices are comical.
I built my current computer in 2020, went from part-time junior engineer to full-time senior engineer, and I couldn't afford to replace that computer at the same specs today. It's unbelievable.
I couldn't afford to replace my current NVMe drives (which is why I'm very happy I set everything up with the Samsung 970 Pro, as they're 2-bit drives that will outlast even my grandchildren).
I actually had to RMA some RAM yesterday, and even that has gotten so expensive that it now costs more than my entire computer cost in 2020.