Public Health and the Social Contract

How is the concept of public health reflective of John Locke's idea of the social contract?