Science doesn’t exist in a vacuum. With capitalism, you’re directly incentivized to invest in R&D because you can come out with a better product that people will want, thus advancing science. Everything from the lightbulb to HVAC machines started as capitalistic endeavors as opposed to purely academic ones.