What's the real reason for morality? And within the definition of "morality" I include the notion of "the right way to live", which has been thoroughly discussed elsewhere.
Morality exists out of fear. The primary fear is of anarchy, and with that, fear of those capable of doing what they will with another. Morality provides the rules for behavior and one way or another are taught to us as children as a major aspect of socialization. We are taught all aspects of right and wrong, taught to share, taught to respect others, and so on. I do not believe we are born with an innate sense of right and wrong, and my belief is reinforced by having raised four children.
Further, the existence of rules provide for those who follow them a sense of rightness for their own actions and more importantly, a socially accepted sense of wrongness for those who do not. There are interesting exceptions, however, since all seem to love lets say the "proper" rogue ("The Outlaw Josie Wales"), or perhaps the heroes of the movie "Matrix", rule-breakers all, but in their case, for the "proper" cause. From Agent Smith's standpoint, they were rule-breakers to be caught and punished. Whoever is dominant gets to set the rules.
An aspect of having morality is self-protection. If you follow the rules, you can identify the thugs, who don't follow the rules, and you may also presume society itself will condemn the thugs. Were there no rules, its possible the thugs would cause personal harm or potential death, minimally annoyance.
In a discussion the notion arose concerning morality and IOB's. If morality is a human creation, which I submit it is, what of inorganic beings? Do they, as well, exist within a set of rules? Why would they? There is no need, and that is not because they innately know right from wrong...it's because right and wrong are irrelevant. They are irrelevant merely because IOB's are immortal. As Richard Bach said in "Illusions":
"We are game-playing, fun-having creatures; we are the otters of the universe. We cannot die, we cannot hurt ourselves any more than illusions on the screen can be hurt."
and
"There is no good and there is no evil, outside of what makes us happy and what makes us unhappy."
In other words, we are actually IOB's. If you are immortal, there is no concern of thugs. In fact, in that circumstance, thugs are totally disarmed because there is absolutely nothing they can do to hurt you.
I'm reminded of an ancient story about a fierce warrior confronting a monk. The warrior told the monk he was facing one who could kill him instantly with one stroke of his sword. The monk replied that he was facing one who didn't care.
In effect, the monk completely disarms the warrior, in the same fashion that one utterly without fear could confront any thug and disarm him. The whole thing seems to center around fear, and in my opinion, the essence of being an IOB is fearlessness. We, within human form, deal with fear by establishing morality.