Lore reason? They were basically angels and beholden to a higher power.
IRL Reason? Tolkien loved the idea of a "good catastrophe" ending. He named the trope if not invented it: https://tolkiengateway.net/wiki/Eucatastrophe
but he realized this was a cheap shot and even called the eagles "a dangerous machine" he had to use sparingly.