An accident of birth? He wasn't born Duke of Edinburgh and he wasn't born Prince Philip, and he wasn't born married to the queen.
An accident of his wife's birth, maybe - or good luck in that Elizabeth (accidentally?) fell in love with him, which was probably not because he was a distant cousin.