Even something as simple as a blog accrues the author some small reputational benefit.
Of course if people do conclude that there’s no benefit to sharing knowledge and stop doing so then those who do share knowledge will have an outsized impact on AI training. In the extreme: the opportunity to create truth. Thus the incentive to publish in order to stop those people is created.