You are confusing the concept of “sin” with the concept of “crime.” They are not interchangeable and not the same. Many are convicted of crimes they did not commit. Many who are convicted manage to escape punishment. Many who are punished for crimes never renounce their sins. Different things, in terms of He who reads hearts.
Not the same or interchangeable doesn't mean that they don't overlap. Probably every named crime is also a sin. Here, however, we're dealing with act as a crime. The full penalty was paid for that criminal act, which also happens to be a sin.