It has been speculated that earth and mars had synchronous orbits and this was the last near pass before unhooking.
Thirty-day months, twelve months, year of 360 days> as I put quite a long list, actually, from all ancient calendars, from Incan and from Mayas, from Peruwhich [Mayas] means in Mexicofrom all ancient European, like ancient Roman and Greek, and also Asian, near Eastern, and Far Eastern civilization. From each of them I put quotes from authority: twleve months of thirty days, strange as it is, without intercalary. Intercalary months were brought later in. And so later there were two Moons calendars, Moon calendar of thirty days, and the new Moon calendar. -- Transcripts
The Hebrew calendar is luni-solar, as are the Chinese and Hindu, and old Roman Calendar. Months are the intervals between observations of a new (waxing crescent) moons. Occasionally, and extra month is added since there are very nearly exactly 235 lunar cycles in 19 solar years. 19 x 12 = 218, leaving seven “leap months” (technically intercalary months) per 19 years. The extra months are added to keep the names of the months in sync with the seasons.
Mars and earth have never been in orbital resonance, much less synchrony. Neptune and Pluto are in 2:3 orbital resonance and there is a strict orbital resonance among three of Jupiter’s Galilean Moons.