The pain in the leg is mainly due to lactic acid build-up, as sudden movement can lead to enhanced anaerobic respiration of the leg muscles, but if adhered to over a long period of time, the muscles will adapt so that the soreness disappears, and when it occurs it can be relieved by massage or hot compresses.