These tales go back as far as man began to grunt warnings to his offspring that a beast would eat them if they ventured too far from the cave.
That has to be part of this. The messages of the tales are universal.