The immediate cause of World War I that made the aforementioned items come into play (alliances, imperialism, militarism, nationalism) was the assassination of Archduke Franz Ferdinand of Austria-Hungary. ... This assassination led to Austria-Hungary declaring war on Serbia.
They reduce the time (by making it faster) and reduce the cost of trading (by making it efficient).