Scientology is what happens when a science fiction writer acts out a dystopian plot in real life instead of writing a novel.
Read Stranger in a Strange Land, read about Hubbard and Heinlein's friendship, and look at the timeline of when Scientology started and Stranger in a Strange Land was published.