it's the nature of the beast.
my emotions were part of the reason I used. I was extremely moody when I used.
I blamed others for my behavior. I was a mess.
Maybe the question is, as you asked, why are you attracted to these people? Will it happen again? What is in your past to make you want to fix someone?
I don't want the answers, but put something on paper for you. Maybe find counseling or Al Anon or Naranon and take a look at you so you don't repeat this in your future.
love & hugs,
~SB