Why Euthanasia must be illegal?

for me im not agree to euthanasia or mercy killing

because in the bible it is stated that thou shall not kill

and in the criminal law killing is punishable so we should not agree in euthanasia