As with fascism, the rise of Islamic totalitarianism has partly to do with its populist appeal to the class resentments of an economically oppressed population and to anger at political subordination and humiliation.
You don't have to be Sigmund Freud to surmise that war has a perverse appeal for the human race, nor is the attraction limited to religious fanatics committing mass murder and suicide for the greater glory of God.