Because trust in your officers is staggeringly important. Even more so when you are put into a combat position and rely on those same officers to lead and guide men and women who may die. Honor and integrity in the military should be one of the most important elements of that person's character.
Add to that, if they can't be trusted in an academic setting where the consequences are a bad grade, how can you trust them in a situation where there are lives at stake?