The government is very big. They can have multiple priorities. The Dept of Justice does not provide medical care, education, or anything else you listed -- they prosecute crimes. And using classified military plans for personal gain while potentially putting fellow soldiers at risk seems like a crime that is worth prosecuting.