The first screensavers were made to prevent burn-in on early monochrome CRT monitors which were prone to such things. Burns were much 'easier' to produce on those earlier single-color screens, so a constantly moving image was designed to prevent a burn. After those screens went obsolete, however, I believe screensavers became largely a novelty; a way to brighten up your computer screen.