the reason maybe being bored, but also for funds, if the employee claims the caught x amount of terrorist before committing crimes, then they will get more funds, otherwise they lose moneyIsis itself was western plot too. I remember reading the uk girl being groomed by Canadian intelligence services who facilitated her trip to syria. It also happens in norway too. This is the results of officers being bored at work with criminality going down they have nothing left to do so they plot to entrap innocents so they can boast of having arrested a terrorist and get that good publicity in order to secure finances from state budgets.
State only guarantees finances to security officers doing good job. So if you are not arresting you losing out on your food on the table. So you have to make up imaginary threats to public safety.