It's because developed countries cause.
In the Middle East countries, border lines were drawn regardless of ethnicity or religion.
Also, why do we have weapons and funds to do terrorism? It is because developed countries have been using local armed groups to their advantage every war in the Middle East.
So, as a result of the actions of developed countries, terrorism has expanded.