The problem is that survival and prestige in the academic community is directly related to publications. Also, journals don't accept non-novel research. So helping someone scoop your current or future research directly hurts you.
Obviously that's not a good thing, but it's a pretty straightforward response to the circumstances of academic papers. It has all kinds of other side-effects too: salami slicing, non-reproducible results, publication bias, etc.