It is partly the religion, but we should not forget the role of consanguinity in breeding these people.
The Khalifs or whatever used to use their white slave concubines to breed children with, to avoid the inbreeding problems for their blood lines.
The tribalism inherent in the religious-political system creates cultural pressures that drives the consanguinity.
It’s all interrelated, figuratively and literally!