That is called a "plea bargain."
The original charges were probably much more severe, and that's what the attorney dealed him down to.
Generally crimes in the first degree are premeditated acts.
(I'm not a lawyer, neither do I play one on tv, but I do watch
Law & Order a lot ...

)