There are rules in prisons which prisoners must abide by. There are also consequences if rules are not adhered to. Perhaps guards were trying to protect others from further harm.
Turkish police fire tear gas as clashes break out during May Day protest in Istanbul (Reuters)
from the article: PA blasts Israel for riot in Ketziot Prison, which leaves dozens hurt