Scientific method
We want to make sure to use exactly the same amount of water in each trial, and exactly the same amount of sugar. We do this to make sure that the temperature alone causes the effect. It might be, for example, that the ratio of sugar to water is also a factor in the rate of dissolving. To be extra careful, we might also run the experiment so that the water temperature does not change during the experiment.