Hello ! To unlock the speedrun mode you need to finish the game at least once! It will unlock the speedrun mode as well as the infinite mode!
Thanks !