Frankie, that's because the fuel is more dense. Ie in 1ml of higher octane fuel there is more energy stored. If you get 40L of Optimax and weigh it against 40L of normal fuel the Opti will weigh more cause its more dense, which = more power. That's without advancing the timing. The higher octane fuel can also be advanced more and you can get more out of it.
Pete,
I know what you mean Pete but what i'm saying is it's not wise to set yours up to use the knock sensor on closed loop because it will be false triggering from engine noise instead of knock.
If you want to do it that way, delete all the ignition maps and run it off the knock sensor.
That's why no factory car in the world does it. All the engineers in the world must know something if they're all doing it.
Tune it with the knock sensor's and lock those ignition values in but don't drive around "on load" in closed loop. You wont be making as much power as you potentially could.