It's just due to a large majority of terrorists are Muslim.
Then the media and idiots in society believe that 'all'/'most' followers of Islam are terrorists, and that their religion encourages it. They believe it is encouraged in Islam to become a terrorist, and it's not, nothing more than a de-contextualization of the verses in the Qu'ran,