"Thank you" comments are pointless noise. You can thank someone for answering your question by upvoting it. This is also why comments are restricted to being longer than 15 characters: precisely so that you cannot type "Thank you".
If you want to show your appreciation, that's fine. Wait until you get 15 reputation and then upvote the post in question. When you get more reputation you'll be able to comment, but be sure to contribute meaningfully with those comments. "Thank you" is not a meaningful contribution.
Later, when you've been with Stack Overflow for a long time, you'll come to see that this is a good way to handle things as when people come to visit Stack Overflow looking for answers they won't have to deal with meaningless comments inside the content they desire.
Even though you might think they can just ignore it, it does take real mental processing to determine if a comment is meaningful or not, and that slows people down which contributes to a negative mental image of Stack Overflow. We want to avoid that.