However, there are two key differences.
And after all his adventures, why would Jack just give up excitement for contentment? While he was eating, the giant came home.
Those beans turned into an enormous beanstalk reaching into the sky.
The Giant fell and died.
The Giantess told Jack to hide in the oven until the Giant fell asleep after his breakfast.
Jack leapt up in fright and went and hid under the bed.