David was enabled to sin over many years, which led to his sin with Bathsheba.