Parece haver algum tipo de mágica envolvida, embora isso nunca seja explicitamente abordado nos livros.
Even as Sam himself crouched, looking at [Shelob], seeing his death in her eyes, a thought came to him, as if some remote voice had spoken, and he fumbled in his breast with his left hand, and found what he sought: cold and hard and solid it seemed to his touch in a phantom world of horror, the Phial of Galadriel.
'Galadriel! ' he said faintly, and then he heard voices far off but clear: the crying of the Elves as they walked under the stars in the beloved shadows of the Shire, and the music of the Elves as it came through his sleep in the Hall of Fire in the house of Elrond.
Gilthoniel A Elbereth!
And then his tongue was loosed and his voice cried in a language which he did not know:
A Elbereth Gilthoniel
o menel palan-diriel,
le nallon sí di’nguruthos! A tiro nin, Fanuilos!And with that he staggered to his feet and was Sam wise the hobbit, Hamfast's son, again.
The Two Towers - Chapter 10: The Choices of Master Samwise
(ênfase em negrito minha)