Chickens were often the only animals enslaved people were allowed to raise for themselves. Like many racist stereotypes, it’s more rooted in the 20th Century than slavery or early American history. There used to be some chain restaurants - notably Coon Chicken Inn - that used racist caricatures to sell their fried chicken, so it’s basically an advertising meme.