The data and code that underpin a research study can tell us what was actually done, and how. In a medical study, for example, how were patients selected for inclusion?
How were missing values handled? How were the results evaluated?
Access to a study's data and code helps researchers to answer these questions, to examine the methods and to build on the work.