In Star Trek, all inexplicable things like this are caused by a strange subspace distortion, known as a "plot hole".