I think that is the case, no? The majority of research is funded by the government, i.e. taxpayers' money, even more so for basic research. The better question is why we taxpayers have to pay publishers to access research funded by ourselves.
Good news! It’s been years since most government funding sources have required research they fund to be open access. The NSF has required this since 2016 and the NIH since 2008. The bad news is that journals charge incredible fees to researchers to make their articles open access and so your tax dollars go (via grants to researchers) to these publishers to fund this. Which would be fine if the prices were more reasonable but they just keep increasing.