We needed to domesticate them and combine them with cooking to "take over" (cheap+reliable food store/distribution in colder climates).
I think it's actually the "free time" it bought some in society that resulted in a lot of other advancements. But that's harder to pin point i guess...
The Bible's old testament also contains explicit rules for when this is allowed, and Jesus got into an argument with Pharisees on whether doing that is allowed on sabbath (Matthew 12:1). This is definitely something people did in recorded history, so assuming it happened in prehistory before we figured out cooking isn't much of a stretch
Even Neanderthals were cooking: "Oldest cooked leftovers ever found suggest Neanderthals were foodies. Pancake/flatbread with a ‘nutty’ taste is first evidence of complex cooking and food culture" source: https://www.theguardian.com/science/2022/nov/23/oldest-cooke...