That was mostly a product of syndication and lower budget expectations for TV shows. More episodes = more profit on syndication. HBO's "golden age" then showed the sorts of TV shows you could put on - more cinematic, higher production, etc. Higher budget expectation per episode means less episodes.