Almost all modern science is gated by needing incredibly massive amounts of money.
'Closed source' science happens in every industry. While you may not think of what DOW is doing at science, it is and huge companies like that progress by their internal workings.
What you're stating is something else, that maybe we should fund sciences, such as AI more, but we really did that in the past and it had it's own fits and starts. Then transformers came out of Google and private industry has been leading the way in AI. If you want to keep up with cutting edge and the 10s of millions needed to train them, you'll need to use these private models.
Hackers hack stuff from private companies all the time. Hackers use proprietary software. There is no purity test we have to pass.