moral_obligation
1. [ noun ] (sociology) an obligation arising out of considerations of right and wrong
Examples:

"he did it out of a feeling of moral obligation"

Related terms: duty