You can leave the academy without penalty prior to the start of their Junior Year (or as the service academy’s refer to it, second class-men).
He is finished his sophomore class last year so he simply withdrew from the academy and obviously at the same time was released from his obligation.