The best explanation for why the sample can be used to determine statistics that apply to the population is:
The sample represents the population.
This means that the sample of 500 boys and girls from middle schools across the state is likely to reflect the characteristics and Internet usage patterns of all middle school students in that state, assuming that the sample is selected in a way that is representative of the entire population.