Maintaining relationships has nearly nothing to do with luck and everything to do with doing those things that are required to maintain relationships. Those come naturally to some people but for others they are learned skills that require some focus and effort. But if you fail it's almost certainly not because of bad luck, but rather because you decided that it was too much bother.