I was wondering the same thing...
It's tough getting over an abuse, and I'm telling this judging by my own experience. You start questioning everything because you've been so gaslighted that you don't know what is real and what is not anymore. And this is exactly what abusers want: to make you go crazy. As a matter of fact, it's easier for them to manipulate and take advantage of people when they "trap" their victims into a cage of uncertainties, where their only point of reference becomes themselves (the abusers).
As a consequence, you start blaming yourself for everything that has happened, is happening and will happen, no matter what. You try in any way that you can to justify their toxic, narcissistic and/or psychopathic behavior by telling yourself nice stories like "They didn't mean to", "I am to be blamed. If I had been stronger, this wouldn't have happened" or, even worse, "They had all the right to do so, because I'm a piece of crap who doesn't deserve anything good". Can you relate to any of these? I guess you can.
I'll try to be as objective as I can: indeed, people having narcissistic traits who, over time, are more likely to abuse you are attracted by a particular type of people: helpers, rescuers, forgivers and empathetic people are only some of them. Therefore, if you feel that deep down you are like this, you are going to be like a walking magnet for them. So yes, you attract them, but please be aware that this happens BECAUSE YOU ARE A GOOD PERSON, because you want the best for them all, no matter what, and because you focus more on the people around you rather than on yourself and this has led you to the point of believing that you deserve all the bad things that they do to you.
No, you do not deserve this, and I know it's not right that you have to get through this... this is the nth drawback of being a good and warm-hearted person. I'm not saying that you should stop being the wonderful person that you are just to keep the abusers away. This is not a solution and may not even help at all. Instead, please understand that you are a victim and that it is perfectly normal that you have these doubts and questions hanging over your head. Trust me, nothing in the world could justify their abuses. Being good towards someone should not be in any case paid back with an abuse.
Think of it this way: your abusers are just a bunch of frustrated and ungrateful idiots who did not deserve any of the good things you did for them. It's their fault, not yours. Your only fault is being good, but... since when being good is a flaw, something you should be punished for?
Hatred helps in this case. You gotta hate them. It's gonna be a long and emotionally painful process because you will have to reconsider many of the things you were certain of and you basically have to reset your brain, but trust me, it's the only way out.
I wish you all the best!