Folk story: A hunter returned home after being away from home for four years. He saw that his wife frequently wet the bed, so he hung a ghost sign on the door.
When the concubine of Emperor Jing of the Han Dynasty came to have her period, she arranged for the maids around her to sleep with her, and an idiom was born.