Whoopi’s ancestor was sold into slavery because they were unequal to the slaver. The ancestor was basically weak and ineffectual, unable to cope with the stronger, more capable enslaver.
The enslaver also was probably black, being from a group that was at war with her ancestor’s group.