So, the intended use in this case is most likely appalling, but just to answer your question anyway... a hypothetical automated medical diagnosis device may use “race” as a factor, given there are small genetic differences (e.g. sickle cell) that may influence medical decisions, and different ethnic groups do seem to have different patterns of illness (e.g. differences in Covid mortality rates that aren’t explained by socioeconomic status).