Photolithography
Memory chips have thousands or millions of identical cells. Because is much easier to make than a CPU, (a large die with a non-repetitive structure), RAM chips are far less expensive than processors.