If you just hang criminals, this doesn’t happen
Europe became the greatest civilization ever seen by hanging criminals for centuries, executing 1-2% of each generation until doing such became unnecessary because the crime genes had been weeded out
As a result, they could focus on empire building and high civilization rather than forever paying the EBT Danegeld to a hostile and irrationally violent underclass