Because it has no choice - losing a war means a second genocide. Losing a battle or two, losing soldiers life, is nothing compared to losing a war. Any price, however painful is acceptable. Backing down, compromising, postponing to the next round of fire, will only put more danger and more pain in the future.
Israel fights because it must. Why do the Muslim fight? Because they can.