One theory is that a monk who was thought to have invented pretzels shaped them to represent the arms of a child praying. He would give them out as rewards to those who memorized their prayers.