Most railways are regional and do not own track all the way across the nation, so their lines end at some point.
The fact that most railways are limited to a particular region and do not have continuous track across the country is a key concept.