Physical activity helps prevent stress and anxiety by releasing endorphins, reducing stress hormones, and providing a mental distraction from worries. Exercise can also improve sleep, which further reduces stress.