PLEASE HELP ME!!!!

Why do certain people become friends while other do not? What factors allow two people to become friends?