The lower-pitched strings on a guitar are thicker because they need more mass per unit of length to vibrate slowly enough to produce low notes. At the same length and tension, a heavier string vibrates more slowly than a lighter one, creating a lower pitch.
How string thickness affects pitch
A guitar string produces a note by vibrating. Its pitch depends mainly on its vibrating length, its tension, and its mass per unit of length. Thicker strings contain more material, so they are heavier and vibrate more slowly under comparable conditions.
That is why the low E string is much thicker than the high E string. The strings are also tuned to different pitches, and their thicknesses are chosen to work with the guitar’s scale length and suitable playing tension.
Why low strings are often wound
On many guitars, the thicker low strings are wound strings: a thinner core is wrapped with additional wire. This adds mass, allowing the string to produce a low note without needing an impractically thick, stiff string.
In short, thicker strings make low notes possible by adding mass. String length and tension also affect pitch, so thickness is only one part of how a guitar string is designed and tuned.