The condition of the Earth had to become favourable before it could support any form of life.
The formation of the different layers around the earth like the ozone layer was necessary before life could originate. Primitive species such as some prokaryotes were able to live in hydrothermal conditions during the initial times. With the passage of time, as the concentration of oxygen increased due to photosynthetic prokaryotes, situations became favourable for eukaryotic organisms to arise.