Not all living organisms use oxygen (even on our planet), true.

But you don't get free oxygen on a planet without life to continually produce it.

It's a good indicator of some forms of life.