While the top is spinning, every part of it (except the very middle) experiences a large centripetal (lit. "centre-seeking") force (assuming the top stays in one piece) because of its rotary motion. As the spinning top starts to lean, gravity exerts only a relatively minor force compared to this stabilising force, so the acceleration, and therefore motion of the top, is little affected.