They are usually made of plastic or waterproof textile and seal the hair against water and steam.
They are used for personal care, for example when the hair should not get wet. They are popular because they are simple, reusable and useful for protecting the hairstyle.