There's a fundamentally wrong view of the way algorithms are written implicit here. Take for example a recommendation algorithm for porn. It's not written by some programmer expressing his tastes in code, like he would in language, it's written by analyzing the tastes of lots of people. If the result is racist - maybe people prefer black men and asian women - then it's because people's tastes are racist, not because the programmer is racist.