Yes, this can only be the result of programming. because a LLM by itself has no concept of white, black, prejudice or pride.
It just is able to predict, based on a stream of tokens, the most likely stream of tokens that could complete it.
it is like an auto-correct loaded with steroids, stimulants, and an exo-skeleton.