Why have humans moved more and more away from barbaric means of execution? Also, done away with torture altogether?

Why have humans moved more and more away from barbaric means of execution? Also, done away with torture altogether?
It wasn't too long ago that civilizations
Why have humans moved more and more away from barbaric means of execution? Also, done away with torture altogether?
across the globe possessed barbaric,
heinous, cruel, gory, and extreme manners
of killing people even for what many would
consider to be rather petty or insignificant
crimes.

Also, crimes in which execution or severe
punishment is not warranted like drug
usage, adultery, etc.
Today, it seems clear that the world as a
whole has moved away from these things.
But why? Have we gotten smarter?
Perhaps, those voices that were pro-
barbarism were eventually silenced out by
the prevailing minds of the common
sense? More intelligent? And more moral?
Updates
+1 y
Okay, so clarification.
I said “as a whole” in other words “generally speaking.”
This doesn’t mean that every person and every country that has ever existed is included.
It just means that the average of everything is pointing to a movement towards a certain direction.
GENERALLY SPEAKING.

Hope that addresses people bringing up individual incidents, points, countries, etc.

You can always find these, but again they do not disprove a general rule.
Why have humans moved more and more away from barbaric means of execution? Also, done away with torture altogether?
Post Opinion