I struggled for ninety minutes on a bike. It felt terrible for my legs, but my mood was much higher after it was over. Thank you endorphins. These chemicals, often released with high intensity exercise, can improve mood, reduce pain,59 and are associated with flow states.