Quote from : The Science of Discworld III: Darwin's Watch Book

Wizards don’t believe in gods. They didn’t deny their existence, of course. They just didn’t believe. It was nothing personal; they weren’t actually rude about it. Gods were a visible part of narrativium that made things work, that gave the world its purpose. It was just that they were best avoided close up.