How do slaves go to jail?

they went to jail because white men had slave baby with them so they went to jail cause there are not supposed to have a relationship with the slave owners