From what I gather the etiology of night sweats and hot flushes is not completely understood. The "classic model" attributes it to imbalances in estrogen, not just a decline in estrogen. Night sweats im women start during perimenopause when there are wild swings in estrogen levels. Administering estrogen to these women (which lowers their natural estrogen production and stabilizes estrogen blood levels, ameliorates the symptoms).
My theory has been that when using steroids men experience the same peaks and troughs of estrogen production. For instance, a day after a prop injection estrogen climbs, and then drops off sharply. This is probably mimicking what goes on with estrogen in perimenopausal women.
As JGUNS suggested, cortisol may be involved, as may a host of other factors. Bear in mind that some of the listed hormones may fluctuate as a result of the hot flash and or sweating episode (1).
And of course the possibility exists that AAS induced sweating is due to a completely different mechanism.
(1) Am J Obstet Gynecol. 1984 Aug 1; 149(7): 775-9.
Increase of proopiomelanocortin-related peptides during subjective menopausal flushes.
Genazzani AR, Petraglia F, Facchinetti F, Facchini V, Volpe A, Alessandrini G.