do you think any woman would pick a bad man if she could tell he was a bad man on sight?
Er, yes actually, I think there's an outright fetishization of this. It's one of the things that drives the enduring multi-generation popularity of the Joker & Harley Quinn characters.
Beyond the simplistic "I can fix him!" trope (which is a reflection of behavior that real people exhibit) there's a kind of strange attraction that some individuals have to a person who does not generally display affection - they want to win affection from that person because it feels exclusive, it feels special, and that makes them special.
It's part of why you see some people go back to the same bad relationships, the same abusive partners repeatedly (there's also the sunk-cost fallacy).
You might say, "oh, but that's just a few unhealthy people", but I don't think that's true. These behaviors exist as tropes in our media because they are relatable to many audiences - which means that the behavior is fairly common, everyone knows somebody who acts that way.