A student runs a 400m race as part of a school sports day. In the final 50m, their legs become heavy and painful. What is causing this?