They're parables. Nuggets of wisdom, told in the form of a fictional story, which clearly demonstrates the purpose of the wisdom. It's like an example situation that you can avoid by knowing what the story teaches.
In that respect the Bible has some particularly good stories in it. Others make less sense, but I suppose that's what you get from translating it through three different languages, and changing it over a period of hundreds of years.
|