Actually the reason is 2 fold.
1. The reason for RAM price increases is because the companies are diverting resources to developing next die shrinks of memory and GDDR6.
2. The SSD production has increased as well, diverting resources from RAM to NAND FLASH because unlike what people think they actually use the same process and tech.
The rumour that Apple gets first pick is not even remotely true, Samsung gets first pick and the rest it doesn't GAF about.
Now RAM has increased in price stupidly but SSDs not so much since RAM is something you buy once and generally don't often upgrade.
SSDs however are sold more and more because of new builds, old builds and upgrades.. it's pretty much the hottest item there is and generally is cheaper to manufacture.
SSDs often (counting mainstream) use 4 to 8 NAND packages where RAM is ALWAYS 8 if they're single sided and 1 if double sided.
This and if you look at M.2/mSATA format SSDs they tend to use 2 - 4 packages even.
Also Toshiba, which was the 2nd largest NAND FLASH production in the world, hasn't produced anything for a while and SanDisk being in the same boat in that regard has also attributed to increasing SSD prices by a small margin, kinda hilarious if you think about it since they actually developed FLASH NAND technology.
Too bad really... Toshiba's Toggle NAND was regarded as the best MLC memory consumers could get.
But for the reason of RAM ... Samsung has finally realized that there's been a little bit too much diverting of resources (done by all manufacturers) and is building a new factory to drive prices down for both SSDs and RAM.
The question is whether Micron and Hynix will follow suit or not.
RAM prices are 3 times what they were a year ago.