One of the theses is that at the time it was not possible to play the organ in the church. For this reason Gruber and Mohr created a song that could be accompanied by a guitar. There are many other stories about how the song came to be.