Capital punishment was envisaged for a broad array of crimes, “including robbery and theft, even if nobody was physically harmed in the action” (Wikipedia).
Some nations including China, the US, Iran, Belarus, and others preserve the death penalty as an option, while others like Canada, Australia, New Zealand, and almost all European nations have abolished capital punishment.
Still others keep the norm in their legislations, but have de facto suspended execution of criminals sentenced to capital punishment.
Organizations like the European Union demand from new members the abolition of death penalty as a condition of entry.
Thus, there is a significant pressure on nations to cancel it.