If you are trying to go back to "why is there anything?", then the answer is "we don't know precisely, but we do know that if those things hadn't happened, we wouldn't be asking the question, so so we have no basis of knowing whether it's random, rare, or a near-certainty for a new universe."
If that's the case, why haven't we been hit by any in recorded history that gave us more water?
How many comets have hit us that were rife with water supplies to provide the amount of water earth has given that water isn't also abundant on planets that are much larger, like Jupiter?
Why do we see planets with atmospheres of say sulfer, and earth doesn't have an issue with sulfer in the atmosphere?
answers your question.
If you are trying to go back to "why is there anything?", then the answer is "we don't know precisely, but we do know that if those things hadn't happened, we wouldn't be asking the question, so so we have no basis of knowing whether it's random, rare, or a near-certainty for a new universe."