Why did ABC make such a confident bet on Nathan Fillion and “The Rookie”? The answer lies in the second episode of the sixth season of “Castle.”

If you didn’t watch ABC, you could be excused for knowing nothing about “Castle,” starring Mr. Fillion as a novelist who helped the police solve crimes.

But the unhyped Sept. 30, 2013, episode of...