I believe this is a reference to the Good, The Bad, and The Ugly.
"There are two kinds of people. Those who have guns, and those who dig. You dig"
Is just one of the "There are x kinds of people" lines in the movie, and the earliest use of it (1966).
and, like most of the previous movie lines it is considered a revolutionary movie in its genre.