"But obviously free access is better for science as a whole"
That's not totally obvious without sorting out the details. Similar to copyright, it seems to be inefficient (in the sense that it artificially restricts supply) but certainly a lot of people think it helps improve the overall supply of creative works.