From My Research Wiki
In some armies, a soldier could purchase his discharge for a sum of money. Soldiers and sailors usually enlisted for 10 to 20 years, which could be a lifetime for many. After a few years the soldier wanted out; if he could afford the fee he could get out.