Drawing Lewis structures is based on the octet rule. The idea is that each atom (aside from H, hydrogen) is surrounded by 8 valence electrons. Each bond (stick) represents a pair of valence electrons, and the pairs of dots also represent pairs of valence electrons.
It’s all based on valence electrons, which are shown as dots. So Lewis structures are also called dot diagrams, electron dot structures, or Lewis dot diagrams.