bestowed power from dragons
So when they bestowed the magic on them.. how was this accomplished? Was it a mental transferrence of knowledge? Or knowledge told to them (such as words of power etc) or was their some change to the genetic code of the first magicians, which is automaticaly passed down to offspring? If it is the former than only those who are taught (whether by another person who knows or by self-teaching from manuscripts) the knowledge will have magic.. whereas if it was the latter, then you could find some genetic mutations throughout the population that means you end up with some child, seemingly unrelated to magicians, in some place that has magical power.
When encountered with such "unexplainable" happenings, most non-educated people will come up with stories and myths to explain it and that's generally where the idea of God(s) and Devil/Demons come from. Evil people could use these beliefs to manifest illusions or summon beasts to control other people through fear and so on. Even good people could use this same fear of the God(s) to control people enmasse and keep the general populace subservant and oppressed.
Anyway.. yeh.. it's a big topic that could be stretched and molded in many different forms but it all goes back to the root cause of the belief.. why did they start believing in a God.. or conversely, how do you explain the way the general population deals with understanding these strange occurences. It's one thing for the knowledgable people of "nobility" (or whatever) to understand as they already have the knowledge "bestowed" upon them (through some kind of passing down of the knowledge) but for everyone else....
yeh.
EDIT: The best stories, I find, are those that are able to just get on with the story and not go into lengthy explanations of why such and such is true. Like with most scifi, such as Star Trek, they don't really get down into the nuts and bolts of how the Warp Drive works. Instead, you are basically asked to just believe in the idea as a method of faster-than-light travel.. or the subspace communication system.. there are books external to the TV series and in some episodes they do explain it in a little more detail but for the most part, you just accept the fact that there is a system of communication like that and the story moves forward unhindered. So essentially, as long as the magic system or lore of the universe you are creating is not disjointed, people will generally just accept that that is how it is and it's only when you get bogged down in the details that people even bother to think about it in more detail and thus start to find flaws in the idea.
Having a backstory provides context.. knowing why these people believe (or don't believe) in a God helps you to create the story but you don't necessarily need to write that into the story itself but just use it as a basis for the characters' motivations, intents and actions.