We read from Tanya (excuse me for not having the number of the verse) that:
כי מיכאל שר של מים וגבריאל שר של אש, ואין מכבין זה את זה
“Michael is the prince of water and Gabriel is the prince of fire, yet they do not extinguish one another.”
Though water seeks to quench fire and fire endeavors to vaporize water, and “Michael is the prince of water and Gabriel is the prince of fire,” nevertheless they do not extinguish one another.
כלומר
This means to say, not that Michael’s substance derives from the spiritual element of water and Gabriel’s substance derives from the spiritual element of fire, but that
שמיכאל שר של חסד
Michael is the prince of Chesed (“kindness”),
הנקרא בשם מים, היורדים ממקום גבוה למקום נמוך
which is called “water”, because it descends from a high place to a low place.
והוא בחינת ההשפעה והתפשטות החיות מעולמות עליונים לתחתונים
In spiritual terms this [descent] means: the bestowal and diffusion of the [Divine] life-force from the higher to the lower worlds.
ובחינת אש, שטבעה לעלות למעלה, היא בחינת הגבורה, והסתלקות השפעת החיות ממטה למעלה
Fire, whose nature is to soar aloft, represents spiritually the thrust of Gevurah (“severity”), and the upward withdrawal of the flow of life-force
Now when we notice that Michael and Gavriel has high ranks among the angels in Heaven so that they are even called "princes", did they do something to merit that ? Or the Almighty gave them this role the moment they were created ?