Whether you realize it or not, exercising can have a great impact on your mental health.