We reduce the harm we do to ourselves and to others when we adopt the proper moral codes..
People who seek to do what is right because it is good to do what is right are noble of mind even when they fail in doing right because of their faulty human nature..
Oh and assuming that one will be rewarded by society and others for doing good is a mistake.. One does what is right because it is right.. Not to recieve a rewards for doing right..