A gun would have to be put to every individual miner's head to force the majority to upgrade. Even then, if it caused a fork, individual users have the freedom to continue using the old version, new miners can choose the old version. Miners can even switch back to the old version after the gun is gone. Everything will still work.
Equally police/military have probably been used when there would not be democratic support.
Did you have some examples in mind?
The analogy applies to this, too. Governments have long shown that you don't have to put a gun to each individual's head - murder a small amount of dissidents in a nasty manner and it quite effectively squashes dissent in a lot of cases.
A lot of miners are in China, which has lots of practice doing this.
If your currency forks, and you are now in the minority, chances are your values will fall, and become harder to make liquid, as the market shrinks.
With cryptocurrencies, anyone at any time can fork for any reason.
This can't be done with the government. The government will prevent you from doing so.
A cryptocurrency can't prevent another cryptocurrency from existing, though.
"Sure, the government can send men with guns. But that's because they have the backing of the people. The police and the military. If they lose that, they can't."