Slaves were considered property. Their owners wanted to restrict their freedom so they wouldn't be as likely to escape.
The first document approved was the Declaration of Independence, followed by the Articles of Confederation, followed by the Constitution, and lastly the Bill of Rights.