A computer's memory can be pictured as a hierarchy, going from extremely fast and small storage close to the processor, down to slower but much larger storage further away. Placing the hard disk correctly in that hierarchy reveals its main purpose.
At the very top sit the CPU's registers, tiny and lightning fast, holding only what is being worked on this instant. Just below that is the cache, still fast, still small. Below that is RAM, larger and reasonably quick, holding whatever programs are currently running.
All three of those levels share one critical weakness: they are volatile. The moment power is cut, everything held in registers, cache, or RAM disappears instantly.
The hard disk sits at the bottom of this hierarchy, and its defining trait is the opposite one, it is non-volatile. Whatever is written there stays there whether the computer is on, off, or unplugged entirely. This single property, surviving a loss of power, is what separates the hard disk's role from every other level above it.
Because permanence through power loss is the one property unique to this bottom level of the hierarchy, it identifies the hard disk's true purpose.
Therefore, the correct answer is To store data permanently.