why did god allow slavery