Every major battle in LOTR is resolved by a sudden miracle or outside helpers showing up. This was deliberate on the part of Tolkien, who liked the storytelling device of the "eucatastrophe" but tbh it feels like it cheapens the efforts of the heroes to me