Answer:
its just like the saying an eye for an eye
Explanation:
he wanted to set an example for the people saying "this is whats going to happen if you don't abide by the laws" so when people were seeing this happen they thought "wow probably shouldn't do that" thus keeping order within society. Or at least most of it. Fear controls people.