Answer:
Groups like the Halogens, which include Chlorine and Flourine, share similar properties both behaviorally and structurally. The Periodic Table is essentially a bunch of patterns and trends and the groups (like the one with Sodium and Potassium) were grouped together because of these similarities.
Explanation:
https://en.wikipedia.org/wiki/Alkali_metal