grammer question
"In 1791 Robert Carter III, one of the wealthiest planation owners in Virginia, stunned his family, friends, and neighbours by filling a deed of emancipation, setting free the more than 500 slaves who were legally considered his property." Why use "set+ting" here?