Silo,
As I understand it, the higher the octane the higher the boost can go without causing detonation in the cylinders. Also, higher octane fuel is better at higher altitude. Thus, more power is produced at altitude. More power = more speed. Higher altitude = less drag = more speed. More power at altitude = best speed.
I could be entirely mistaken, but that is how I understand it.