And just to add to GTSBoy's post..
As he mentioned they are called knock maps,not low octane maps.
The ecu has no idea why the engine is knocking (if it even is) so it just switches to the knock maps.
The engine will knock for a variety of reasons, obviously low octane is one but it's not like the ecu somehow knows that is the reason.