The elevation is a major factor. There are glaciers near the equator in the Andes and in the tropics and sub-tropics of the Himalayas. The temperatures at high altitudes allows for the formation of glaciers.
because they are at higher elevations here it is much colder and glaciers can form