Re: So AI in this instance got it right
In the US, they were, which is the point.
Anyway, in the UK, you might find that many of the poor white families have Irish heritage. While Irish people don't experience racism in the UK now, they did in the past, and that could be a factor.
Class is about having poor parents / grandparents / etc. The point is that in some cases, that poverty in previous generations could have been caused by racism.