Earth’s moon, after being propelled from orbit on September 13, 1999, and wandering the cosmos for centuries, entered the 40 Eridani A solar system between the events of TOS and TMP and was captured by Vulcan’s gravity. That clearly is the most logical explanation 
