The honest answer? Both. And also: it depends.
Same feeling, different person? That's not a coincidence.
Blame the victim? I have thoughts.
Yes, you attract the wrong sort. No, it's not your fault. Both things are true.