The individual(s) who coded the program that runs the robots have their own internal biases and those biases were knowingly, or unknowlingly, loaded into the robots’ memory banks.
It sounds like those programmer individuals have... artificial intelligence. Hmmn, similar to leftist Democrats who think they are smart but have artificial thinking. Can our future robot overlords be worse?
You do not program AI. You train a model and run the model to get results. The selection of data for the training and how the models are trained can lead to many unintended consequences. An example, the AI in self driving cars that determines what street signs can be confused by defacing the signs, like adding stickers, that will not confuse human drivers but can really mess up AI. One AI, that was used to classify animal, could be confused by using photo editing software and putting elephant skin texture on a mouse. As AI is used more, AI hacking will become more prevalent, and the AI will be very hard to fix.