The parent comment is right. It's not just the spark; heat and pressure are also part of what ignites your air/fuel mixture.
You might be thinking of diesel. Diesel depends on compression to combust and has heater coils to ensure minimum temps as well.
This is more obvious when you read engine specs and they have minimum octane ratings, not specific ratings.