HEEEEELP PLEASE

So I wash then my private area , but then when by the time I get home from school I have smelly brown stains in my underwear. Is this from Sweat Or what ? What can I do about this ?