Part of the problem goes back to the easing of qualifications for entry into ANY branch of the services. Because the bushies were so intent on punishing Hussein for what he tried to do to daddy bush, there was a call for bodies to fill the ranks with low pay to fight a SECOND war when the (relatively) legitimate first one was nowhere near to accomplishing its goals.
Remember, the attacks cited are the exception, rather than the rule. Almost all Armed Services members I have met have been polite, professional and informed. In these few cases, however, it all boils down to “What ye sow, so shall ye reap;” and “You get what you pay for.”