Wise people know that they should not be doing things that they would not want revealed to others. All too often we are fooled into thinking that if nobody is watching, we can get away with things. That is a flaw of character as well as a great misunderstanding. Things that we do have a tendency to become known.
Jesus explained the benefit of doing good things in secret (Matthew 6:3-4). Good things, too, have a way of becoming known. What would we rather be known for—doing good deeds of doing evil deeds? A good name (reputation) is worth more than gold (Proverbs 22:1).