I always wondered why *Star Trek: The Next Generation* took a formula of being militaristic (and the scores got more militaristic too) in later seasons?

I'm thinking "Best of Both Worlds" and "The Wounded" might have something to do with this, as the latter is what introduced us to what would become a recurring enemy in *Star Trek* franchise in the years to come, the Cardassians. Is that why?