Outgassing and volcanic activity produced the primordial atmosphere