Selling excess ammo to the general public allows the plant to run full time and decreases cost to the military.
Running full time means that when DOD needs ammo NOW, all Lake City has to do is change which trucks the crates go on.
Maybe not even that. Maybe just change the delivery instructions given to the drivers ...