Because it's often like that, look at the past :
The
Armed Islamic Group (
GIA) was one of the two main
Islamist insurgents groups that fought the Algerian government and army in the
Algerian Civil War.
The
Islamic Salvation Front (
FIS) was an
Islamist political party in
Algeria.
Between 1992 and 1998, the GIA conducted a violent campaign of civilian massacres, sometimes wiping out entire villages in its area of operation.
Reports of battles between the AIS (armed branch of the FIS) and GIA increased (resulting in an estimated 60 deaths in March 1995 alone), and the GIA reiterated its death threats against FIS and AIS leaders, claiming to be the "sole prosecutor of jihad" and angered by their attempts to negotiate a settlement with the government.
During the 1995 election, the GIA threatened to kill anyone who voted (using the slogan "one vote, one bullet"), but turnout was high among the pious middle class.
https://en.wikipedia.org/wiki/Armed_Islamic_Group_of_Algeria
https://en.wikipedia.org/wiki/Islamic_Salvation_Front
The war has been referred to as `the dirty war’ and was notable for "unspeakable brutality"and "unbelievable savagery and violence" in attacks on civilians.
They formed themselves into armed groups, principally the Islamic Armed Movement (MIA), based primarily in the mountains, and the more hard-line Armed Islamic Group (GIA), based primarily in the towns. The GIA motto was "no agreement, no truce, no dialogue" and declared war on the FIS in 1994 after it made progress in negotiations with the government.
https://en.wikipedia.org/wiki/Algerian_Civil_War
Daesh (or Abu Bakar al Baghdadi) wasn't elected by anyone.
Daesh kills muslims and non muslims in a barbaric way .
Daesh forces people to be muslims or they are killed, exiled or slaves.
Daesh wants to create a world caliphate.
Daesh is against any politic movements and against monarchies.
I think it has nothing to do with Hamas.
As for the other groups, any of them want to loose their power/influence.