Back in the days when they were first published, they were supposed to be stories with a lesson. Like, some of them had happy endings, but some of they didn't. They were just supposed to teach you something, like be a better person, or bad things will happen to you. Something like that.