Because they prefer the East Bay, particularly beautiful Oakland?
And Richmond, They were pushed out from East Palo Alto by liberals.

Because the education that is valued by Silicon Valley has been disparaged by the dominant form of American black culture since LBJ?

Let me take a stab at this “problem.” Why are there relatively few African-Americans in the Silicon Valley? Well, it’s the center of the world’s IT industry, for starters. And the IT industry needs people who are well-educated and technically proficient.
Now, visit the engineering and computer science departments of your local colleges and universities. You’ll find blacks are under-represented as students and faculty, for several reasons. First, many black students are products of failing government schools, which means they are unprepared for the rigors of computer science, engineering, math or any other discipline that would prepare them for any number of jobs in IT. Instead, many black university students are steered towards “safe” majors like African-American studies, criminology and communications. Like many of their white counterparts, they “graduate” to a dead-end job, because their academic skills and experience aren’t a good match for Apple, HP, Google, or any other tech firm.
BTW, it would be fascinating to know the percentage of Google’s Bay Area workforce that is black, in comparison with the overall percentage of African-Americans in the local population. I’m guessing that blacks are under-represented, but since Google is a “progressive” company and a media darling, no one mentions that their workforce is dominated by whites and Asians. But then again, Google didn’t reach its place in the tech industry by hiring unqualified workers.