We are creatures moving in time. As such, at the time we act, we cannot know the consequences of our actions; nor can we go back and undo our actions if they are unwise or cause damage. Forgiveness is the mechanism that God has provided that allows us to recover from our errors.