The resident male who was displaced then comes back and looks after all the eggs, including those of the pirate and the reason he does it presumably  in the first place he can't distinguish which eggs he's fertilized and those fertilized by the pirate and secondly, he knows he's fertilized some of the eggs and therefore it pays him to stay and look after all of them.