They were, basically, brought to life by the particular situation that obtained during several decades in the second half of the 19th century through the early 20th century: the railway technology was much more efficient for moving grain and other cargoes overland than any other option available (which, in those areas mostly meant a horse and a cart).