King became interested in science in the hope of learning enough to prevent and treat such illnesses.
The passage suggests that King was motivated to learn about science to develop methods for preventing and treating diseases.