In a college indoor track 5K, one of my teammates was being lapped by another teammate competing for a podium spot. The guy being lapped started sprinting to help the guy near the front of the race finish strong. That was ruled illegal pacing and they were both disqualified. It was a similar sort of situation — in order to legally pace you must be able to keep up with the runner your pacing.
Having pacemakers in marathons that way is deemed acceptable. The organization of a marathon will even specifically hire runners to, say, run the first half in one hour ten minutes, after which they are free to step out of the race.
Here, each pacemaker, including the ones that accompanied him to the finish line, ran for only about 9 km (my guess, given 35 pacemakers used and using groups of 7). So, the last group only started running when Kipchoge has run for over one and a half hours.