I experienced this in marathon training and researched it. It is the body’s reaction to the oxygen needs of your body being prioritized over that of your brain to keep your muscles firing. If you are pushing yourself in running and try to do math problems in your head you will find your math ability degrades as you continue your run.