Our moon is much larger in terms of moon mass/earth mass, than in the vast majority of planets with moons. This allows a total eclipse, unlike other planets with moons.
The theory is that the earth was struck by a large comet or asteroid which spun off the moon’s material. This formation of a moon is rare.