That was possible because of advancements in transportation technologies.
The first advancement was the development of railroads. Which managed to cut out the shipping time more than 2000 %.
These days, airplane and ships are also more commonly used.
hope this helps