The worry here is not about controlling militaries. There are different processes for that.
The scenario people purport to worry about is one where a future AI system can be asked by "anyone" to design infectious materials. Imagine a dissatisfied and emotionally unstable researcher who can just ask their computer for the DNA sequence of an airborne super Ebola. Then said researcher orders the DNA synthetized, does some lab work to multiply it and releases it in the general population.
I have no idea how realistic this danger is. But this is what people seem to be thinking about.