My layman guess would be that shortly after formation Earth was just a ball of lava that destroyed every organic component so when the surface solidified it was sterile.
It was probably a ball of lava again when the moon formed after the impact too
It was probably a ball of lava again when the moon formed after the impact too