Because the government has more guns than you do.
The detailed legal answer is far more complicated than that, but it simplifies readily.