The story
From the use of know in the Bible. Some Bible translations, such as the King James Version, translate the Hebrew word יָדַע (yādaʿ) as know even in sexual contexts, giving rise to lines like “And Adam knew Eve his wife; and she conceived.”
Etymology from Wiktionary, CC BY-SA 4.0.