That is a feature of vBSEO if you don't want it enable please disable Cleanup Html Code setting within vBSEO Control Panel
Quote:
HTML CLEANUP -
Select 'Yes' to remove unnecessary whitespace characters and HTML comments from the source code of your forum pages. This increases the C2C (Content to Code) ratio and reduces page sizes, resulting in a net performance increase and reduction in bandwidth required.
NOTE: If comments (or HTML tags) within your pages are not closed correctly with their corresponding end tags, then this option could cause your pages to display incorrectly. Be sure that your templates contain error free HTML tags and code.