It can’t be a measuring device for a brothel because the holes are too small.
The missing components are the naughty pics that used to be arrayed inside, and could only be viewed from the opposite holes (as it were).