having been involved with FOSS for more than 30 years, i never came across that sentiment. not that it didn't exist, but i'd guess it is a small minority. people who write code to feel good about themselves likely don't make good project leaders anyways. they won't be missed.
People write code for a variety of reasons but the ones who stop coding and spend time trying to publicize their project generally want people's attention. They find pleasure in sharing.
People will still write code for a variety of reasons but why bother sharing if no one is listening.