It just happens to be so that the people from the countries we have been interfering with for the last decades are mostly Muslim. Before that it was relatively peaceful and extremism was nearly non-existent. The current anti-Western extremism is reactionary.