The Virginian stole a story from Bonanza
In 1961, Bonanza aired an episode, "The Friendship," guest-starring Dean Jones as a young man who was orphaned and when he was 13, was transferred to a prison. He hadn't committed a crime, but they didn't know what to do with him.
In 1963, The Virginian aired an episode, "The Evil That Men Do," guest-starring Robert Redford, as a young man who grew up in an orphanage who was then transferred to a prison at 18 - not for any crime but just because they didn't know what to do with him.
Coinkydinks?