What you're missing is that 'good' is defined with respect to a goal. From an evolutionary standpoint (whatever that really is), the complete extinction of all life is just one possible way things could be and it is as good as any other way things could be. From a human perspective, this is awful. As is any future where humans don't exist.