There are two interchangeable concepts that can be applied to this theory. The first one is the moment of Inertia and the second the perioricity. When the runners put their leg forward they reduce their moment of inertia allowing their center of mass to maintain the speed they carry and not waste energy. In this way when they swing, the leg begins to act as a kind of pendulum, and remember that the pendulum is directly proportional to the length, that is,

In this way, by bringing their legs closer they reduce the distance and make the period shorter.