Your sweat may smell like weed because one of the main functions of sweating is to send waste out of the human body. The sweat glands can discharge cannabis metabolites.
If you smoke or ingest marijuana in any way, your body can exude traces of it through your pores. This is exactly why cannabis users may detect a subtle (or not so subtle) marijuana odor in their sweat.