Have you ever been an employee? Or been in the service?
As for employees, most work in ‘at will’ environments, which means you don’t need a cause to fire them. That’s a balance against ‘popping off’.
As for the military, they are governed by the UCMJ, and while you have LIMITED constitutional rights, you fall under that area of legal jurisdiction.