In dermatology, cotton socks are used primarily for their hypoallergenic and breathable properties, which help prevent skin irritation and support healing. However, dermatologists advise that 100% cotton socks can trap moisture, which is detrimental for conditions involving excessive sweating, and instead recommend specialized blends for active wear or for those with fungal infections.