It's only the HAM bands that forbid encryption.
If encryption were allowed on the ham bands, they would probably become dominated by general purpose digital communications; likely to the exclusion of their current purpose.
Take everything you do on a phone call, over SMS, and over the Internet. Subtract anything personal, anything business related, anything involving copyright (e.g. watching a movie or listening to a song, even if you own it), and anything you don't want associated with your identity (anonymous blogging). Also, I forgot to mention that broadcasting is also disallowed. You couldn't just start telling poetry on a frequency without regard to anybody who may or may not be listening. You also can't use the bands for any commercial purpose.
Anyway, after subtracting all that, what your left with is what people use the band for today. Which, I suppose, could still be considered "general purpose." But when I said "general purpose digital communications," what I had in mind were the sorts of things you use email or the web for. By volume, mostly music, videos, porn, ads, and private business operations.
We don't want people to deliberately broadcast noise, but encrypted data is indistinguishable from noise, we can't allow that either.
The restrictions have nothing to do with preventing people from transmitting noise. Transmitting encrypted on amateur radio stations was originally not allowed because of espionage concerns in the earlier days of amateur radio, and has stuck around largely to prevent abuse. Allowing unencrypted but encoded transmissions makes sense in that context, as long as the protocol is published.