Several years ago, the community decided that everything that was not part of the question or answer, was superfluous. This was in the early days of Stack Overflow (2009), and the relevant discussion is now preserved on Meta Stack Exchange: Should 'Hi', 'Thanks', taglines and salutations be removed from posts .
The community still seems to feel that way today: see "My opening 'Hi everyone' in my question keeps disappearing, or Should I remove 'fluff' when editing questions?
To understand where this came from, you have to understand one of the motivations that Joel Spolsky and Jeff Atwood had when building Stack Overflow. One of the things they didn't like about forums was how much space was used by avatars, signature lines, and so on. A lot of stuff that was not related to the subject matter, but did distract from it. Jeff Atwood discussed this in a blog post on Coding Horror.
Stack Overflow decided to do away with all the unrelated material in posts; one could argue that they went to the other extreme by deciding that not even "Hello" and "Thank you" were welcome.
I agree with @Tanner that if removing a "Thank you" is the only thing that could be fixed about a post, you might as well let it stand. But if someone is going to edit a post anyway, removing salutations and thanks is appropriate.
We express our thanks using upvotes and accepts. This may feel a little weird at first, but it works well.