It was grabbing a toehold even when our world was a literal hellscape.
Actually this makes sense in the context of autocatalytic sets hypothesis - you'd need large variety of inorganic compounds and a strong energy gradient to kickstart a metabolism.