I think you are misunderstanding slightly. Those things are not considered racist in and of themselves. Americans eat fried chicken, I have four restaurants near me, we eat watermelon too.
But in art specifically associating those with dark black characters can be a problem. It would take a very nuanced understanding…