I'm not the mod who removed your two comments, however I can see that both were flagged by the community and removed at some point prior to the chat migration.
The vulgarity (although censored) may have played a part , as may have been the fact that the two combined comments were clearly an attempted answer to the question.
Now that's not what comments are for, we have a whole "answer" section dedicated for just such purposes.
While I'm not going around looking for answers-in-comments to terminate with any sort of prejudice if they get flagged with a "no longer needed" they're probably going to get removed, if they're exceeding the length of the comment box such that it needs multiple comments they're probably going to get removed, if they're even remotely flirting with vulgarity they're probably going to get removed.
Like I say I'm not out hunting for ones to remove - but that doesn't change that comments on Stack Exchange sites are intended to be largely ephemeral, so generally it's not advisable to get too attached to them.