Normally, something that answers the question should be written as answer. Sometimes, users write an answer as comment for different reasons:
They don't have the time to write a more complete answer, and they write the comment as a hint for somebody else who could be able to write a more complete answer
They are not sure about the answer, which could be just a guess
The question is not that clear, and they write an answer as comment, hoping the OP comments about that, making more clearclearer what the expected answer is
They are going to vote to close the question
In your case, both the users who commented voted to close the question. That is probably why they didn't writepost an answer instead of commenting.