Firstly ram is still significantly faster than both your regular 6gb/s SATA or even the newer pci-e based solutions. Ram's also designed to be written and erased repeatedly, at the cost of volatility. Ram generally dosen't wear out due to use regular use - tho, of course, it can fail like any component.
While the lifespans of SSDs have gotten much better, SSDs do wear out. They're absolutely brilliant for non volatile use, but if you wrote and overwrote NAND (which SSDs contain) like you do ram, it would wear out.
Both are really optimised for different things, and you're better off having enough ram (and using SSDs or spinny hard drives for paging out) than compromising on enough ram for the task.