It was the US government that created the drug testing for jobs, when they passed laws requiring it for a variety of government jobs. This had a secondary effect of requiring it for private employers working with government, and then it grew from there.
I did it once, many years ago, and then adopted a policy of refusing it (even though I don't use drugs or even alcohol.)