Why do you think this is true?
If, for example, I asked why are spaceships made of bananas and cat fur, it would be helpful to first confirm the claim is valid before we spend time thinking of reasons. The same is true with your question.
If it is true, then familiarity likely aids in understanding and comfort level. It likely makes us feel more secure. For role models and people we’d like to be, that is probably more about self interest and a desire to learn how they are the way they are so we can try replicating their behavior.
But first, let’s confirm your core claim is true and look for counter examples where we aren’t attracted to these types of people. With that established as fact we can pursue explanations.