When you binge a season of television, you are counting in a unit invented for Greek tragedy. And in that tragedy the episode was, by its name, the extra bit.
The Greek word is epeisodion. Merriam-Webster breaks it down as epi-, "besides," plus eisodios, "coming in." Underneath sits eisodos, "entrance," built from eis, "into," and hodos, "road" or "way." So an episode is literally a way in on top of something else. Dictionary.com glosses the Greek as "addition, parenthetic narrative."
What was it added to? A Greek tragedy was built around its chorus. The play typically opened with a prologue, then the parodos, the chorus's entrance song. After that, spoken scenes alternated with choral odes called stasima, "stationary" songs sung in place. The play closed with the exodos, the "way out."
The spoken scenes between the choral songs were the epeisodia. Dictionary.com notes that a tragedy had three to six of them, and that they carried the central plot. Characters came and went, argued and decided. The chorus sang lyric verse in traditional meters, while the episodes used the spoken rhythm of iambic lines.
English borrowed the word in that technical sense. Merriam-Webster gives 1678 as its first known use, for a unit of action in a play or story. From there it widened. It came to mean an incident that could be separated from a continuing narrative, and then any event that stands out from a larger series.
Serial publishing gave it its modern job. Novels issued chapter by chapter in magazines, as Dickens's were, came in installments. Movies, radio and television kept the habit, and each installment became an episode. Doctors use the word too, for a recurring bout of illness.
The chorus, which once framed every episode, has mostly vanished. The additions became the show.