It takes time for the flame front to propagate. The faster the piston is moving, the earlier you have to begin ignition. Piston speed is also one of the factors that makes an engine less likely to detonate and therefore it can use lower octane at high RPMs - but who lives at 7,000RPM? :)