On the hill there was a large herd of pigs eating. The demons begged Jesus to allow them to go into the pigs. So Jesus allowed them to do this.