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 them
Usage notes: In the Bible
, 'to know' someone meant to have sex with them.
'Did you know
her then?' 'Yes, but not in the biblical sense.'