Why do authors romanticize toxic relationships?

Technically I tend to go to “bad-boys” if they are actually fun, since in some stories the nice boys are a bit “controlling”. Overall when having to pick from many LI’s my decision is made by the ignorance of the bad boy. If there isn’t any then I am picking him.
I find it super concerning as well.
I get it that overly confident, attractive and sarcastic boys get more attention but I can’t see how people can’t distinguish confidence with ignorance and toxicness.