When your workout causes your body temperature to rise, you'll sweat to cool yourself down. The fluid itself doesn't smell, but as the bacteria on your skin breaks down the acid in your sweat, it produces an unpleasant odour that gets trapped in the fibres of your clothing.