This is speaking of the power of association which helps to shape character.
We have a tendency to become like the people we associate with. If the people you are with are arrested for a crime, you will be arrested, as well. You will be called an accomplice to the crime because you are with the criminal.
We see someone who is a companion of someone successful and that person will try hard too. I have noticed that we try harder to do just as well as the person we are with. Competition creates success.