It is colder at the top of a mountain as compared to the base because
1
surface of the Earth produces heat.
2
atmosphere gets heated by the heat re-radiated by the Earth's surface.
3
the top of the mountain is nearer to moon.
4
the mountain has glaciers.