Haha, it's actually neither. I don't think we're attracted to 'good' guys because we think they're boring. With 'bad' guys, they seem so much cooler and you feel like other girls would be jealous. If you like a girl that does that, you gotta make a move or tell her how you feel or what she's doing or she's gonna keep doing it. Best of luck!
Unfortunately abuse tends to be a pattern so no it is not "hereditary" but it can very well be a learned behavior even when they do not realize they are following in patterens. And I would never call someone who has been abused "not smart." They are wounded people.