Locality of reference

Locality of reference is a phenomenon that can be seen in Computer science. It says that the same value, or the place where it is stored is accessed often. There are two different kinds of locality of reference:
Reasons.
There are many reasons why locality of reference occurs:
Uses.
Programs can be optimised in certain ways, to make them run faster: