A lot of natural laws start to be questioned with the Scientific Revolution. That led to new political ways of thought like the improvement of society by promoted freedom, independent rights, and equality.
With scientific discoveries that questioned natural laws, the scientist starts to reflect about government. They thought that people were equal because they were all governed by the same law.
The government was understood as a natural process so it could be improved.