I must be missing something. The military is currently an all-volunteer force — but they don’t have to take everyone who applies. They control who they let in. But it is still a voluntary force.
And also control when they get out.