It’s not just superhero stuff - virtually every action/adventure movie since the 70s has killed the villain.
When I actually saw the original “Cape Fear” around 1995 or so, I was frankly amazed that it didn’t happen in that.
The trope has been discussed - it may boil down to increased distrust of the law enforcement…