This case was purely punitive. Hunter gave up the gun, and his drugs long before the charges were brought.
He is being punished for what he did, not what he was doing. The same for his tax evasion charge, since Hunter has paid all the taxes, fees, and penalties he owed.
That's how criminal prosecutions work, you are charged to what you did. As an officer of the court he should get more time than the average joe.
.