Keep in mind that we released IE6 before many of these standards were written or clarified. It also wasn't clear at the time if the standard to follow was the W3C on or the defacto standard the reflects all of the quirks introduced by Netscape and previos versions of IE. Doctype switches were largely untested at that point.
The sin wasn't in IE6 itself but rather in letting it rot as the world moved on.
Oh - and the security sucked. That was pretty bad too.