Apple's previous policy of price gouging for RAM means no need to raise prices yet, they still have a buffer.

They also have long term contracts with the suppliers in all likelihood

They do. They announce those. 1.5b USD was the most recent, iirc.