Simple. Manwë wanted to reward the son of Tuor, but could not allow him to return to Arda causebecause he broke the rules by stepping on Valinor. I believe it was Mandos that wanted to punish them for this, but Tulkas and Aulë intervened and convinced Manwë, the king of the Ainur, to have pity on the blood of the Noldor.
So, Manwë, who would not allow EarendilEärendil to stay in the undying lands, for he was man, and the gift of Eru to men is death.. Manwë Manwë could not disobey god so he blessed Eärendil's ship, Vingilot, to sail the heavens (the skies) and watch over middle earthMiddle-earth with the silmarilSilmaril, which Galadriel refers to when giving Frodo the light vial. And sometimes, Elwing was given the form of a bird so she could be with her husband for a time.
So when the war came in which Melkor was finally defeated, Eärendil from the skies saw the Black Dragon, he attacked from above with the power of the silmarilSilmaril.