Why exercise improves your resilience

Exercise regularly. We know that this is important for physical health but what about the other benefits? Building and maintaining resilience? Improving mental performance? Taking care of your brain over time? What is the difference between light exercise, vigorous exercise and movement on an ongoing basis?