Artificial intelligence: How to avoid racist algorithms

Why do so many algorithms seem to echo human bias?