Why in America has criminal law been codified and became statutory law while all other legal areas are still common law?

Posted by YakClear601@reddit | AskAnAmerican | View on Reddit | 61 comments

I apologize if I should be asking this in a more specialized subreddit. In learning about the American legal system, as a common law country I understand that a lot of law rests on precedents. But that for criminal law, both states and federal law have criminal codes. Why is that the case? Was it always planned that way, like the idea was always to have criminal codes, or did that come about later?