These things became more common in the modern world because transport costs fell so low that it doesn't matter in most cases.