Most railways are regional and do not own track all the way across the nation, so their lines end at some point.
Since most railroads are regional and don't own tracks throughout the nation, their lines end at specific points.