Why did Bathsheba commit adultery with King David?

Bathsheba is sometimes misrepresented as the woman who committed adultery with King David, although from the story in 2 Samuel 11-12 it appears that David…