The method of Time Travel is explained in the Series if I remember correctly. You've got to remember with Star Trek, especially the original series, most of their basis for stuff is based on how people thought these things worked back in the 1950's and 1960's. Yeah by today's standards it seems pretty silly but back when it came out Star Trek was a rather hardcore Sci Fi series.

