Sharpsburg was fought very much under Lee's personal command. He was everywhere on the field and, in a departure from his usual practice, asserted tactical control of the fight. No doubt that was the origin of his comment. The stalemate there against very long odds was a tribute to Lee's prowess as a tactician and leader.
Also, McClellan's timidity had a lot to do with it.