There are two possibilities:

1. The OP realized that by accepting your answer, it is already clear that your answer is correct. Therefore, the OP chose to delete the comment.

2. A moderator (possibly from a flag) chose to delete the comment to prevent comment clutter.

In both cases, it has nothing to do with you. Don't worry about it.