Read the quote from John Locke.
...no one [or government] ought to harm another in his
life, health, liberty, or possessions...and may not,
unless it to be to do justice on an offiender, take away,
or impair the life, or what tends to the preservation of
the life, the liberty, health, limb or goods of another..."
According to the quote, Locke believed that
government's main purpose is to
people's human rights.