Maybe they just enjoy killing infidels.
If there are gaps in security, the terrorists will find them. And when they are successful, the media will try to excuse them.