Morality depends on what society defines it as at the time. Good is a based on individual decisions and preferences. For example, what you consider to be a good dinner may be repugnant to me. You may crave fish eyeballs, while I might pass on that. A good meal depends on so many variables: Quantity of food, food memories, the perceived skill of the cook, the freshness of the ingredients, and how we were raised to believe a good meal should be.
When someone says, “He’s a good person,” it could mean so many things. It might even mean he is a highly moral person. In that case, he follows all the rules of society in general and has other qualities that make him more than a programmed robot. What we generally regard as a good person is one who shows compassion, empathy, generosity, and kindness.