We'd have to ask him that question. A lot of men his age enlisted and then realized that army life was better suited for younger fellows. Four months would be enough time for sometime to make that decision.
Something else to consider -- after he enlisted, Congress passed a law that allowed him to leave service if he wished. And don't imagine that he was the only one to leave under these conditions -- hundreds, maybe thousands of soldiers did so.