why are elective affinities? And why are they important in sociology?

why are elective affinities? And why are they important in sociology?