I assume it's more about predicting these things before employment begins - someone might look ok at the interview but if you found out traces of drugs in his blood that could be an indicator that this is not their usual state.
Basically we're talking about low-skilled jobs that always have plenty of applicants, filtering a bit too many people isn't that big of a deal when there're still plenty of others remaining afterwards.
It's just a cheap initial filter, as long as it's better than completely arbitrary it's probably beneficial to have.