It is because static electricity builds up on the screen of the television which gives the screen a positive charge, It becomes a cathode. This "charged" screen will now attract particles of dust consisting of anions (negative ions). Over a period of time a thick layer of dust will form.
The glass screen of a TV set is electrically charged, so it attracts the dust particles.