The answer is "reward theory" of attraction...
The reward theory of attraction expresses that individuals like those whose conduct is remunerating to them or whom they associate with compensating occasions. Precisely expressed this implies individuals are pulled in to the individuals who somehow influence them to rest easy, or are pulled in to the individuals who help them to remember individuals that they appreciate being around.