Probably a natural energy level settling, an interplay of Newtons & Keplers laws of the bodies.
Each body exerts gravitational energy on each other..the bigger mass wins the smaller mass looses energy & attains a stable orbit.
Moon has a solid core and this may also add to the effect of tidal locking.