Basically terrorism needs some string sentiments in large group of people that can make them do things that they would have not otherwise thought to do. It also good amount of uneducated and poor people for them life was not making any sense anyways, who in others words would have becomes goons if this opportunity did not came their way. Currently we have a lot of uneducated poor people who can take unlawful means and would have been law breaking citizens, feeding them distorted version of religion makes them perfect recipe for being terrorist.