Military contracts run for 6 years in many cases, and there is an 8 year service requirement (you can serve in ready reserve for part of that).
You cannot "just quit" the military as an employer.