You are confusing forgiveness with consequences.
Forgiveness is letting go of negative feelings such as anger or revenge toward the person who has harmed you. It an action a person takes for themselves, not for the person who they forgive. It is a way to free oneself from the upset around a bad experience. It does not require the other person to do anything, not even apologize.
You can forgive someone and still enforce consequences. Parents do it all the time. And, repentance, does not forego consequences either. A person may have a real remorse for the harm they have done, and still suffer the consequences of their actions. I believe this happens to some in prison. Does not change the outcome of their situation, but it does change them internally.
The two are separate and unrelated in many cases.