Commentators explain that Job is not admitting to a specific sin but expressing profound despair. He feels that in the eyes of an all-powerful God, he is already considered guilty. Therefore, any effort to defend himself or prove his innocence is 'labor in vain.' It's a cry of futility from someone who feels condemned regardless of the facts.