The rate of vibration (frequency) is inversely proportional to string length:
On a guitar, the top string (high E) is the shortest, so it vibrates fastest and produces the highest pitch. Each lower string is progressively longer, yielding lower pitches.