What is the purpose of leggings?

What is the purpose of leggings? Leggings in various forms and under various names have been worn for warmth and protection by both men and women throughout the centuries.

Leggings in various forms and under various names have been worn for warmth and protection by both men and women throughout the centuries.