Many professional jobs don't require drug tests. So is it really about finding the "best workers"? Could you imagine if software companies rejected people for marijuana use?
Yes. My software company got bought by a large corporation that drug tests new hires (because they do gov contracts, apparently), and it is WAY harder to find employees now.
I know lots of developers who don't do drugs at all who refuse to take the test out of principle.