Even before David had Bathsheba brought to him, he had already broken the 10 commandments, by [visually] coveting his neighbour's wife,
David is wt's favoured character too, getting away with murder, it is easy, if you have the army to protect you.--so: wt's mistakes are excused too, because the top brass can make no mistakes that have no meaning, after all, God has put them place and not removed them.