Why wasn't there any oxygen in the beginning of the Earth?
The 1200 C temperature is a big clue, given the auto-ignition temperatures of most "stuff". https://en.wikipedia.org/wiki/Autoignition_temperature

Any "free" oxygen would immediately "burn" with carbon and just about anything else, yes.