You misunderstand what "eye for an eye" means.
"Eye for an eye" means let the punishment fit the crime.
Before "eye for an eye" was established by religious texts, the common retaliation for poking someone's eye out was death.
"Eye for an eye" was a step towards a more civilized justice system.