When you are on course, there is a particular path, trail, route, road or prescribed direction which you are expected to take. If you deviate, then you are off course. You could have finished the race like the rest of the contestants except you ran off course.