That to secure these rights,
What do you think that means?
"That" being, "Governments are instituted among Men, deriving their just powers from the consent of the governed".
Yes, the government is involved inasmuch as our founders laid the groundwork. And among that groundwork were limits placed on that government as enumerated in the Bill of Rights.