I had no idea. I was confused the first time I heard it used in that context. Appears that in 12th Century England it WAS the word for a whorehouse. Routinely used.
I learnt this via the latest Amazon Audible book I am listening, viz. “A Mortal Bane”. See below. Kind of neat. I can see how this word could evolve over time.
Check Categories ‘Books’, ‘Brains‘ & ‘THINK‘.