Why do elements in the same group on the periodic table tend to have similar physical and chemical properties?

A
They have the same atomic mass.

B
They have the same number of protons.

C
They have the same number of valence electrons.