This isn't exactly true because some others participate indirectly. The most obvious winners are the people who bought housing or other real estate. There are also non-programmers who invested, the most famous may be the Persian carpet dealers in Palo Alto who've been investing in startups on the side.
Yes, there are many who don't own their house, but some of those can also benefit. California has some of the most generous social benefits in the nation, all because they can tax the tech companies.
Never heard of these carpet dealers but you have any more info ?