I suspect those are mostly outposts. Rail junctions. Water stops for the old steam trains. Remote mining towns. Places that either provided services to railway operation, or primarily needed freight service rather than passenger.
And I agree: I would love to live in a small railroad town. But I would move out long before that town had enough people to justify commuter rail service.