To address one of your questions, the formation of cretinosity is made by adding the common -osity suffix to "cretinous". This is a common enough thing for words ending in -ous, compare:
scrupulous - scrupulosity
virtuous - virtuosity
luminous - luminosity
curious - curiosity
generous - generosity
So that's for morphological explanation of the suffix, and the original adjective (cretinous) it is based on.
So what is cretinous?
1.a person suffering from cretinism.
dictionary.com
So what is cretinism?
Cretinism is a condition of severely stunted physical and mental
growth owing to untreated congenital deficiency of thyroid hormone
(congenital hypothyroidism) usually owing to maternal
hypothyroidism.
Cretinism
So why in your example does it use "having to do with cretinism" with television programs?
cretin
n. (often offensive)
2. A person considered to be foolish or unintelligent.
American Heritage Dictionary
So the word came to connote someone or something stupid or foolish. Note this is a common phenomenon, that of using words to describe physical or mental impairments as terms of ridicule or abuse. Words like "spastic" and "retard" are/were medical conditions that, because of becoming common vulgar terms of offence, have often been the subject of what Steven Pinker calls the euphemism treadmill, keeping up with changes in social perception of insulting words, the result being that words change to more euphemistic ones.
Finally, if in your question you meant what the original etymology of cretin or cretinism is:
etymonline.com claims it's from:
Vulgar Latin *christianus "a Christian," a generic term for
"anyone"
etymonline.com
American Heritage Dictionary claims it's from:
person with cretinism (formerly common in Alpine valleys because of
insufficient iodine in the local diet), from Vulgar Latin
*christiānus, Christian, human being, poor fellow
American Heritage Dictionary
And so too do many dictionaries. However Wikipedia says the etymology is uncertain. It gives the most common hypotheses as the ones I've given above. Additionally it give others:
From creta, Latin for chalk, because of the pallor of those affected.
From cretira, Grison-Romanche creature, from Latin creatus.
From
cretine, French for alluvium (soil deposited by flowing water), an
allusion to the affliction's suspected origin in inadequate soil.
Cretinism etymology