means that
being with others can provide mutual protection and support in situations that might be more dangerous to face alone.
Imagine a case where it is better to face a dangerous or unpleasant situation with the company of others; many is better than a few ans a few is better than one.; then “There’s safety in numbers,” fits well.