Another way to say "making friends is for getting protection" is "friends often provide protection."