That is, David did not look away from the woman as she bathed, as he should have done.
This is a polite way to say that David had sexual relations with Bathsheba.