I think one is temporary and the other is permanent.
RAM disappears when your computer shuts down. No power, no data in RAM. That' because it's all held by some nifty magic when power's running through your circuits. Hard disks on the other hand have physically altered shape to reflect what you want them to remember.