Uh... that's how the law works. If you plead your innocence when you are in fact guilty, you get a longer sentence than if you'd admitted your guilt. There's a whole list of reasons that this is a good idea; I'll let you try to work some of them out for yourself.