When you apply shampoo to the hair, it removes dirt, debris, odor, and oil from the scalp. The hair receives its oil from the sebaceous glands that produce sebum, which moisturizes the hair. Well-moisturized hair doesn't break and looks frizzy.