CERN and high-energy physics has _massive_ datasets. Making them all available on-line isn't practical.
Other researchers may have one or two files that they want to cite as part of a paper.
Healthcare research may have confidential data for which there are specific types of access control required.
I don't think GitHub would be financially sustainable or scalable if it was able to host millions of one-file repos, alongside repos that grow terabytes per day, alongside those that hold highly sensitive data.
I think it would make for a stronger argument to acknowledge and identify the existing solutions and practice, and evaluate them against your criteria.
The usual solution is to make a skeleton repo with only partial or no code, the real substance being a README that explains what the project is and instructions on how to use it. GitHub is a social network as well as a code warehouse in a way, and this comes with benefits. The same system for stars, issues, user groups, permissions etc. extends across all projects regardless of whether the code/data is actually hosted on GitHub. Something like this for science could be of huge benefit.
With GitHub anyone can just chuck something up there with not much forethought, but not so much with DataCite right?
Two examples of DataCite members are OSF.io and Figshare.com . They have very different models. Figshare lets you share and assign DOIs to arbitrary research files. OSF lets you version-control your research and assign a DOI to the project.
DataCite is the DOI registration agency for datasets. https://datacite.org/
They work very closely with Crossref, the DOI registration agency for scholarly works.
They also have a federated membership structure which includes data centres such as CERN etc. https://datacite.org/members/
For an example on current work to incentivise better connectedness of data citation, see Make Data Count: https://makedatacount.org/
It's not perfect, but there's a lot of work, both technical and community coordination, to improve the sharing and connectedness of datasets.
(disclosure: former employee of Crossref, spent some time on DataCite technical steering group)