What Factors Do You Consider When Interpreting the Bible (or any other scripture)
We don't know what the word Witch meant when this was written.
But if you want to have a death penalty commandment
it would be unjust to use a vague term like witch and not actually clarify specific offences.
However in the context of the commandment lots of crimes we consider either
trivial or non offences faced the death penalty.
So the death penalty was not only used for the most destructive of crimes for example:
Numbers 15:
32 Now while the children of Israel were in the wilderness,
they found a man gathering sticks on the Sabbath day. 33 And those who found him gathering sticks brought him to Moses and Aaron, and to all the congregation. 34 They put him under guard, because it had not been explained what should be done to him.
35 Then the Lord said to Moses, “The man must surely be put to death;
all the congregation shall stone him with stones outside the camp.”
36 So, as the Lord commanded Moses, all the congregation brought him outside the camp and stoned him with stones, and he died.
Also these actions were given the death penalty:
Adultery. Cursing your parents. Hitting your parents. Adultery (sex before marriage). Anyone who blasphemes and curses. A priests promiscuous daughter. Homosexual acts.
"If a man has sex with his father's wife, kill them both. 20:11 Leviticus