Why do mountaintops stay snowy, even though they’re closer to the Sun?

Why do mountaintops stay snowy, even though they’re closer to the Sun?