Moray could be considered an ancient agriculture research station. The temperature varies 15 degrees from the top to the bottom of the terraces. They divided it into sections and planted different plants in each section at all levels. They could then see what grew best at each level and decide what to plant on other terraces.
Notice the zig-zag pattern in the picture on the right. These are "floating stairs" built into the wall.