I've always interpreted the Eden myth as a memory of the development of agriculture.
Before agriculture, people lived as hunters and (mainly) gatherers. The life of a Hunter-gatherer is, surprisingly, mostly leisure, because of the abundance of food and the low population density. Even Kalahari Bushmen, who had been forced to live in the dessert, were found to average only about 1 1/2 to 2 1/2 hours of productive labor a day in a study [1].
In the bible, God's punishment is [2]:
“Cursed is the ground because of you;
through painful toil you will eat food from it
all the days of your life.
It will produce thorns and thistles for you,
and you will eat the plants of the field.
By the sweat of your brow
you will eat your food
until you return to the ground,
since from it you were taken;
for dust you are
and to dust you will return.”
Which seems very clearly to indicate that being cast out of Eden means that people now must work in the fields and do agriculture. Agriculture ends up requiring much more labor for worse quality food, but it generates more calories. This enables classes to develop and enforces an end to nomadic life, because the fields must be tended and the harvest stored and protected.
[1] Stone Age Economics by Marshall Sahlins (https://archive.org/details/StoneAgeEconomics_201611)
[2] https://www.biblegateway.com/passage/?search=genesis%203&ver...