Because it's noise.
In a perfect world, we wouldn't need comments at all. Ideally, this site (and the other Stack Exchange sites) is simply a question followed by one or more answers that solve the problem. But occasionally we need to get clarification because there's something ambiguous about a post or there's an error.
To "thank" people for helping, vote up their useful answer (or question). If the gave you the solution you needed to your question, then accept it.
Or, if you prefer, here's a relevant quote from the Help Center:
What should I do when someone answers my question?
Please do not add a comment on your question or on an answer to say "Thank you". Comments are meant for requesting clarification, leaving constructive criticism, or adding relevant but minor additional information – not for socializing. If you want to say "thank you," vote on or accept that person's answer, or simply pay it forward by providing a great answer to someone else's question.