This phrase is an idiom.
If you say you know someone
but not in the biblical sense, you mean you have not had sex with
Usage notes: In the Bible, 'to know' someone
meant to have sex with
'Did you know her then?' 'Yes, but not in the biblical sense.'