Religion is never rational. However on a larger scale american foreign policy over the last 40 years or so has done more to arouse the hatred of the people it was aimed at than any conceivable series of wars could have done. There is no way to excuse violence or terror, bit the insular behaviour of the US when it comes to world affairs makes this sort of thing very predictable.