Hydrogel is used in cosmetics as a moisturizing and hydrating agent due to its ability to hold a large amount of water. It is commonly found in skin care products such as masks, creams, and serums to provide a cooling and soothing sensation on the skin.