It is a coincidence. The rotational speeds of planets formed through a lot of chaotic events in the early solar system. E.g. Venus spins in the "wrong" (retrograde) direction, completely violating conservation of angular momentum, probably because of a planetary scale collision.
We can try to explain solar system formation through mathematical models and simulation (Phobos and Deimos would be clues) but we can't go back in time and find the real explanation. No law of physics mandates that Mars' rotational period should be similar in magnitude to Earth's.
We can try to explain solar system formation through mathematical models and simulation (Phobos and Deimos would be clues) but we can't go back in time and find the real explanation. No law of physics mandates that Mars' rotational period should be similar in magnitude to Earth's.