Or as I have heard put another way, “doing the right thing when no one is looking”
Good they did the right thing. A clear conscience is a good thing.
Your true character shows when no one is looking at how you act.