Because it is important that those who make war, the combatants, obey the rules that impose limits on them.  

The rules of war define what they can and cannot do during a conflict. 

And what do these rules say? 

Secondly, that all wounded soldiers have the right to be treated. Medical personnel must not be attacked. 

The rules of war also protect prisoners: it is forbidden to mistreat them.