J. Ruskin once said "...mountains are the great cathedrals of the earth, with their gates of rock, pavements of clouds, choirs of steam and stone, and altars of snow, sometimes with purple sparkling stars".
This tradition dates back to Ancient Greece and probably even earlier.
This custom was taken over by Christianity. According to this ancient belief many monasteries and crosses have been erected in elevated places.