Could be there's something in the brain that craves religious certainty that makes us susceptible to this kind of thinking. And damage to other parts make this part dominate.
But it's interesting too, the genius level drive and focus that results in these cases. Then again - for every schizophrenic who creates something as grand as TempleOS, there must be thousands who suffer without consequence.