This quote is saying that people become friends because they have similar beliefs or values. This could mean that they agree on how to live their lives and how to treat others, so they bond and become friends. They share these truths or principles, which are important to them, and these form the basis of their friendship.