When your conduct is an independent variable, not a function of the whims of the moment, people can depend on you. There are fewer concerns about hidden agendas and fair-weather friendship; others can turn to you and share experiences they are not comfortable sharing with others.
That’s something that draws (the right) people to you and keeps them there.