The sign on this building calls it a railroad watch house. Maybe it's a place where trains were directed into a siding.
Next picture.