It’s a romantic fantasy to think you are going to save or fix them and they will be so eternally grateful and give you eternal love and need you so much.
Also, it’s low self esteem. We find somebody more ‘messed up’ than us to look up to us and accept ‘broken’ us.