It's a tool and a language, just like a programming language. While I don't subscribe to any religious interpretation, I sympathize with the feeling of divinity in math because it is, by design, the language of reality. It is humanity's best attempt to define, abstract and encode what we perceive to be objective universal truths.
Viz. the whole debate around whether math is "invented" or "discovered" (a debate which, IMO, is just arguing semantics for the same thing).