The main purpose of RAM (Random Access Memory) in a computer is to provide fast access to volatile memory.This memory is loaded out of the primary storage device (Hark Drive or Solid State Drive) when the CPU needs it.This is done so that frequent calls to the same information can be done much faster as reading from a Hard Disk Drive is very slow.Once the information is deemed no longer required by the CPU, the memory can be released and reused.