Especially given that pirate ships were democracies, and the captain only had (theoretically) absolute authority during battle.
The same probably generally applied for bandit bands, especially given that historrically many of them were just mercenary companies with no employer...
A leader who has even one disaster (such as 20% of the group getting killed in one day) is probably going to get replaced in a hurry, if they're lucky...