Perhaps, in order to persist in thinking of himself as a good and decent man, an upright king and an honorable servant of God, he told himself that as king he had special privileges
regarding affairs of the heart.
I really feel for those who are struggling with adultery and it seems the reoccuring question is the same.Will God forgive me if i have committed adultery and the answer is yes we all are sinners and we all have sinned no sin is worse than the other to God.If you are feeling bad because for what you have done then it is the holy spirit drawing you to him repent and turn from your sin.God wants all
of us to draw near to him to get our
hearts right to stop making the same mistakes over and over again.If you feel weak he gives the strength to deal with it rather than trying sort it out on our own.He forgives us because he loves us but we may have to bear the consequence
of our sin like David and his family suffered for his choices
regarding his
affair with bathsheba but God forgave him for his sin.