RAM .. as in, the chips on the motherboard .. is used only for transient purposes by whatever operating-system is running right now. When you turn the machine off, RAM goes blank.
Hard disk space, on the other hand, is permanent storage. If you can boot two operating-systems, then certain disk space ("partitions") will be dedicated to one or to the other. (Slightly simplified...)