means that
acting rightly can bring its own satisfaction, even when no external reward or recognition follows.
Imagine a case where when you do something that is morally and ethically correct, you don't need a reward to feel satisfied; you feel contented only because of your…; then “Virtue is its own reward” fits well.