Agreed 100%. People in the outside world somehow think academia is a place of pure hearts with nothing but good intentions.
Here is the truth: Look at the incentives and I tell you how people will behave. On an individual level, sharing data has great costs and zero (nothing, nada, zilch, null) benefits. All appeals to the common good change nothing if optimising for an academic career means ignoring these very appeals.