Stallman, at https://www.gnu.org/philosophy/selling.html , argues that free software developers should "charge as much as they wish or can, ... if you are redistributing copies of free software, you might as well charge a substantial fee and make some money."
If you have useful data, the free software principles say that you might as well charge a lot of money for it, which is not what most chemists and biologists think of in discussion of data openness.
FWIW, the discussion in science started independently of free software. Here's an example from structural biology. Previous to the 1980s, it was common for crystallographers to withhold structure data from a publication, and perhaps only publish an image showing the C-alpha backbone. This was because they wanted to be able to publish additional papers from the same data set, without competition. By 1987[1], there was a push to require coordinate submission into the PDB as requirement for publication. Most journals adopted this new policy in 1989, and funding agencies started to do so as well[2].
While the GNU project started earlier (1983), there is no connection between free software and the open data availability requirements for publication and funding in structural biology.
[1] https://search.proquest.com/openview/0a93cbb72da63b2899793bf...
[2] https://journals.iucr.org/a/issues/2008/01/00/sc5004/index.h...
Open Source also isn't about making data openly available. Both are only applicable to those who acquire software. It just happens to be that most free and open source developers also make their software available at no cost.