It might also depend on mating dynamics. If females mostly prefer to all mate within the top few percent of males in a community, there might not be much to lose if some of the lower status males of them take their chances going on a war party to conquer/steal some females.
I think that’s too narrow. You can also advance your genes by helping your sisters or other close relatives have offspring.
This is one theory for crime. You could think of crime as a high variance high risk strategy to improve mating status. You might then expect most criminals to be young men, and for the straight crime rate to be higher than the gay crime rate. And indeed both of these are true.