This is because stress makes your body produce cortisol which has many negative effects on the body including being a testosterone killer. (theathleticbuild.com)
When you train hard, your body produces cortisol in response to the stress being put on your body. (sixstarpro.com)
If we didn't produce cortisol after exercise or during stressful situations, we would not survive. (parsleyhealth.com)