Oh, progressive poo.
ISIL, Taliban, Hezbollah, Hamas, Haqqani Network, Quds Force are all backed and funded by East and Mideast countries with the goal of furthering their own political and territorial agendas.
Carrying out attacks on the West helps them do that by bringing in more supporters and funding.