By increasing blood flow to the brain and thereby increasing oxygenation and metabolism, memeory can improve.
I would also add that there may be benefit from improved mood
and overall increased vitality. The other benefit is that as you increase exercise
, you are more engaged and less bored, this improves memory
as well. There are probably other reasons such as hormones, etc but those r basics.