Because that's how you get Apple Health omitting a monthly bodily function that a majority of the population has. Diversity of perspective makes a better product.
The developers of facial recognition tools were aware of the early devices' limitations, and dedicating resources towards an approach that worked better on subsequent iterations. Why people think things would have automagically worked on the first iteration if the teams building the devices were more diverse, and why people continue to use this as an example of the necessity of diverse teams is a mystery to me.