This is a good comparison. It raises the question, "How public must I be to achieve the good I am trying to achieve?" In some spheres, individuals can accomplish their goals very privately, as with their alms. In other spheres, individuals must take a public stand in order to achieve the good they aim for, not because they're seeking the praise, but because making people aware of something is the good they're hoping for. I believe that's the case here.