The muscles of the legs keep artificial hips in place and do not allow them to slide out of place or dislocate. This is why it is important to strengthen leg muscles in the hip area after a hip replacement. It is best to strengthen all of the muscles of the legs.