Whoever kills an animal must make restitution—life for life.
God here prescribes, that whosoever has inflicted a loss upon another shall make satisfaction for it, although he may not have turned it to his own profit; for in respect to a theft, its profit is not to be considered, but the intention to injure, or other cause of guilt; for it might happen that he who has killed another’s ox should not deliberately desire...
Evil manners, we say, beget good laws. We have here an account of the evil manners of a certain nameless mongrel Israelite, and the good laws occasioned thereby. I. The offender was the son of an Egyptian father and an Israelitish mother (Lev 24:10); his mother was of the tribe of Dan, Lev 24:11. Neither he nor his father is named, but his mother only, who was an Israelite.
Commenting on Leviticus 24:10-23
And if a man cause a blemish in his neighbour,.... Does him any hurt or mischief, causes any mutilation or deformity in him by striking him: as he hath done, so shall it be done unto him: not that a like damage or hurt should be done to him, but that he should make satisfaction for it in a pecuniary way; pay for the cure...