I remember seeing a comment on Tumblr that the scene was inspired because Tolkien was disappointed with the prophecy in Shakespeare's MacBeth. He apparently felt Shakespeare missed a golden opportunity.
Anyway, you can usually count on the fanbase to come up with rationalizations and explanations
for this kind of stuff.
I like the line.