Mind you these human rights violations happened before the war. The lives of Palestinians were never rosy under Israel’s occupation.
Israel has been treating them as livestock for a long time and every time they were opposing they were crushed really hard. Simply the rest of the world cared too little about them and apart from a couple of strong worded statements of some states.
So in a way Hamas is reaction to this ill reatment and I dare say that if they have respected them and managed to find some peaceful agreement and treated them respectfully, this was and Hamas would have never occurred.