Rotten to the Core

What does the idiom “Rotten to the Core” mean?

Definition:

Entirely evil, thoroughly corrupt

For example:

“Sam is rotten to the core. He steals, he lies, he’s violent. I’m glad he’s in prison.”