I will go further. It is told as a "Just so" story, to try to explain the question "why are things like they are". Why is the pain and suffering in the world. Why is there man and woman? Why do women go through childbirth? Why do snakes have no legs and crawl on the ground on their bellies?.. SOmething similar to 'Why do leopards have spots'.
Combined with this are some moralistic teachings too.
The way we have interpret these moral lessons in our modern context often depends on our assumptions and world view about religion that comes from later developments. For example, many Christians believe in the concept of Original Sin, and see the 'fall' of mankind in the story. The Jewish religion does not have the concept of original sin,
and therefore there was no 'fall'. The moral lessons they see are different than the Christians.