The higher the octane of the fuel, the earlier you can ignite it.
Its to do with the higher octane the fuel, the better it burns.
With lower octane fuel a later spark is needed to prevent knocking. If the low octane fuel is ignited too early then it will not burn properly, so it needs to be compressed for a bit longer.