You have heard of the attractiveness of "bad boys", right? — LuckyR
It's not a gender-specific thing in the broader sense. Let's think or assume for a bit. We're on a new world, with no weapons, technology, or knowledge, barely able to communicate by anything other than a grunt or yell. How did we manage to go from that to microchips, public services, and "Alexa, order more cat food"? Following social order and progressing, working (sure, sometimes, often even) fighting one another, but in the contexts of "groups" or "teams". Of course, throughout all of that, someone eventually came up with an idea that stood out of began to act in a way that was different than that of his peers. Hence innovation, discovery, and progress. Granted, 90% of "being different" turned out to be naught/purposeless aka "didn't go anywhere."
When a reporter asked, "How did it feel to fail 1,000 times?" Edison replied, "I didn't fail 1,000 times. The light bulb was an invention with 1,000 steps." "Great success is built on failure, frustration, even catastrophy."
But eventually, it did. Take the male peacock. It extravagantly stands out to attract a mate. Sort of like how an inventor tries something new and outlandish to create something new. If nothing happens, he looks foolish. If it works out, those who mocked and rejected him were the fools. There's that aspect.
More generally however, people, men and women, like excitement which is essentially disruption from the routine. Be it productive or not. Think of your favorite character from a movie, book, or TV show? Is he the timid yet wise banker, accountant, or manager keeping everything running and on track? Probably not. Odds are it's the crazy young guy yelling and blowing things up.
That said. The bad boy serves a purpose. There's a time and a place for everything. In society- specifically older ones were it the very notion of society and civilization was fleeting- the guy who didn't play by the rules, and whose actions could not be accounted for ie. "got away with it" often ended up with more resources. Hence continued on in the gene pool over those who perhaps actually tried to follow the rules that created the society in the first place. As some correctly say were just being lazy and trying to get out of work (and did) by leeching off the work of others. There's a balance, as you can see. Sometimes it's useful and moves a society or civilization, such as it is, forward. Other times, for example, say if you're on a ship and you're the "bad boy" who puts off his duties that happen to be vital to the navigation, the s**t will crash and we'd all die. That's why they were thrown overboard and eaten by sharks- hence the legend of the merman.