This. It's this broken publishing model we have at the moment that is the real problem.
You should be able to publish data as a paper and get academic credit for doing that. Then others can publish analyses of that data, crediting you.
To an extent there are incentive structures that support what you're describing, but the reality is that they just don't hold the same amount of value as "results-based" publishing does.