I think this question is confusing Star Trek TNG intentionally choosing a militaristic theme; with the general tendency for a show to raise the stakes as it gets more seasons, simply because the viewer will have adapted to the previous stakes, and their senses have dulled. Viewers need bigger stakes in order to be kept on the edge of their seats. The same stakes would become boring. This is true of pretty much every narrative.
Star Trek TNG has always been a show that's oriented on interpersonal exploration and solutions. Only rarely does the solution come from violence, and when it does it's a last resort after all else has failed.
However, in order to raise the stakes, there has to be more danger in this interpersonal conflict. The human condition inevitably escalates conflict into armed conflict when the stakes are sufficiently high.
This isn't a showrunner's choice to focus on militaristic plots. It has always been the showrunners' choice for Star Trek TNG to realistically model the human condition, and in the natural tendency to raise the stakes over time, this increases the inclusion of armed conflict as an escalation to non-violent interpersonal conflict.