That appears to be a pretty much verbatim write-down of the spiel in that ^ video. I figure he did so many shows, he had stock spiels after a while. He did a spiel over and over, until it became rote. After doing it 50-200 times he had it honed and memorized. He did not dream that up on the fly, it was a product of his life style... stand up comic constantly surveying "the scene."
From his
wikipedia page:
2000s
Carlin later explained that there were other, more pragmatic reasons for abandoning his acting career in favor of standup. In an interview for
Esquire magazine in 2001, he said, "Because of my abuse of drugs, I neglected my business affairs and had large arrears with the IRS, and that took me eighteen to twenty years to dig out of. I did it honorably, and I don't begrudge them. I don't hate paying taxes, and I'm not angry at anyone, because I was complicit in it. But I'll tell you what it did for me: it made me a way better comedian. Because I had to stay out on the road and I couldn't pursue that movie career, which would have gone nowhere, and I became a really good comic and a really good writer."
[57]