At is wasn't the Dems who choose Harris. It was Biden. And that decision was made 5 years ago. That was a campaign promise and it very well have helped him win the election the first time. Her being a female of color does give her an "electability" issue but on the other hand it does help her get some votes too.