To change yourself for example by becoming 'okame' (plain-looking woman) or 'hyottoko' (clown) by wearing their masks at festivals is a natural human desire, which has something in common with wearing costumes at Halloween.
人にとって潜在的にある願望として、祭りなどで、「おかめ」や「ひょっとこ」になったり、縁日でお面を被る行為は、ハロウィンの仮装とも合い通じる。