What's next, drug tests?
It's very uncommon in the tech industry, even more so in Silicon Valley.
It is not conscious decision to pick alcoholics or drug takers. It just so happen that if you are not present at the party or keep it sober, they feel less good about you.