Incentives in this situation are funding and publication. These both require positive results. This seems to be tied to increasing monetization of science driving it away from a principled search for the truth.
We also see this with patents. My girlfriend has her first lab job this summer, and they had a day long seminar with the university's patent foundation on methods to ensure that nobody stole their ideas. This leads to a lot of secrecy (for example, this particular patent office doesn't allow researchers to store anything in the cloud, which speaks to lack of technical understanding, but also to an intense paranoia). This also dramatically reduces the capacity for sharing basic lab know how - there's nothing remotely like StackOverflow for scientists.
This issue is a bit near to my heart, as the company I work for was originally founded to help researchers share data in a secure way. It turned out that there wasn't any demand for that, because, as our CEO put it, "Everybody thinks their going to win the damn Nobel Prize". So we pivoted and now sell mostly to financial and tech companies that are serious about protecting user data.