Work somewhere that public output is part of how you're compensated and promoted. See: https://stackoverflow.blog/2011/07/how-much-should-you-pay-d... "One important principle of Stack [Overflow] is that we do as much as we can publicly, and we try to leave public artifacts of all the work we do."
My philosophy: sell luxuries in narrow channels but distribute medicine broadly.
It's pretty subjective what fits in which bin, people should decide for themselves. But Google certainly has resources that they consider to be "medicine" for their employees and yet they keep those products in-house.