what does moral of the story mean

The moral to a story is a universal aspect of the majority of fictional literature that it not only entertains, but also it serves the purpose of instruction, information, and improvement of the audiences. The chorus in the classical drama, for example, commented upon the proceedings and drew out a message for the audience. The novels of Charles Dickens, on the other hand, address the drawbacks of the social and economic system of Victorian Britain, carrying morals of their own type, which are implicit.
Derived from the Latin term “morālis,” moral means a message conveyed by, or a lesson learned from, a story, a poem, or an event. It is not necessary that the author or the poet has clearly stated it. It can be left for the audiences or the learners to derive. However, at times, moral is clearly stated in the shape of a proverb.

The moral lessons found in many fiction stories would normally show their audiences what to do or how to behave in certain instances. These lessons are always positive messages that try to shape the character and behavior of the listener, reader or viewer in a very positive way.
Below are examples of the morals of some very common stories:

what does moral of the story mean, Language Skills Abroad
Recently a story of mine- Gift for a princess was published in The Hindu Young World. The story is about a princess who wanted an elephant as a pet. When I wrote the story the focus was first on the elephant and then on the princess. The mahout (The man who takes care of the elephant) was just another character in my mind. A friend’s daughter had this to say after the story was read to her. “I liked the Mahout the best as he is very kind to the elephant.”
Children have the most unexpected perceptions of stories that in many ways are bound to make you wonder where and when you lost all that keen sense of perception. They have a knack of identifying emotions and judging if those emotions are good or bad. It seems like they have some sort of sixth sense.

a moral certainty
the inner meaning or significance of a fable, a narrative, an occurrence, an experience, etc.; the practical lesson which anything is designed or fitted to teach; the doctrine meant to be inculcated by a fiction; a maxim

In addition, morals usually connotes an element of subjective preference, while ethics tends to suggest aspects of universal fairness and the question of whether or not an action is responsible:

It would go against my morals to help you cheat on the test.