In its fantastic second season, NBC’s “The Good Place” found empathy within the devil.

Michael (Ted Danson), an immortal bureaucrat charged with torturing four souls in The Bad Place — a version of hell where his prisoners are meant to inflict their neuroses on one another — develops a conscience and helps them escape.

While they argue their eternal cases in front of an omniscient judge (Maya Rudolph), Michael explains himself to his infernal supervisor. “I was just trying to prove that humans could be made to torture each other,” he says. “Instead, they helped each other. They were bad people. This wasn’t supposed to be possible.”

People never learn, people don’t get better: These are unsurprising beliefs from a minion of hell. But they’ve also been the guiding principles of the last two decades of TV. From the dawn of “The Sopranos” through the rise of Netflix, acclaimed antihero dramas have focused on bad people getting worse or good people going bad. (In “Breaking Bad,” the concept is right in the title.)

There are many delights to “The Good Place,” which ends its too-short 13-episode season Thursday: its ingenious twists, its riffs on the banality of damnation. (Hell is stocked with Hawaiian pizza and plastered with movie posters for “Pirates of the Caribbean 6: The Haunted Crow’s Nest or Something, Who Gives a Crap.”)