You could give up being a lawyer. A slave can't give up being a slave.
Right, you can't quit the militia, as that term is understood in the interpretation of the Constitution, and there is an express Constitutional power of the federal government to call up the militia.
OTOH, the existence of that express Constitutional power and the long-understood Constitutional meaning of "militia" means that military conscription isn't a good reference point for the Constitutionality of any other type of mandatory public service.
Once things get grim enough, the army will take anyone. Towards the end of the second world war, the Germans were drafting children and old men.