Having a different skin color, being ostracized by society for whatever reason, ignored by the girls the media suggest they should be interested in, it's not easy being a young male in any society.
We used to have military service but that path is not without problems of its own.
They are related but it would be wrong to equate them.
One is an ideological movement with leaders, propaganda, formalized groups, $$$$, ethnic orientation and nationalism etc..
It would be like saying the Nazis were just a bunch of angry men. Obviously, they were that, but it wasn't the primary driver. ISIS, radical Salafism/Wahhabism etc. are organized forces.
Nothing easier than giving a frustrated young kid a sense of purpose and a way to make a name for themselves. Their background makes that even easier because they already perceive (quite often rightly so) that the deck is stacked against them.
That oversimplifies a bit. You do not simply walk in a well adjusted individual and walk out a radical.
If you check the background of all the people mentioned, i bet you that you will find history involving social services, trouble at school, possibly a rap sheet.
Again and again, no matter if a person is muslim, christian, or something else entirely, the common denominator is that they feel themselves not fitting in with the society around them.