Forgiveness means getting a chance to change your behaviour and stop doing it. If you are still alive, you can have it, if you become steadfastly determined to change.
It's necessary because even the most wise still have a little stumble here and there, but so long as it is only thought and does not lead to action, it is not a sin. Dwelling on the thoughts does make it tend to become an action, so casting it from your mind is part of the work.