For the reasons of insufficient detention facilities and inappropriateness of interning people of different social status in the same facilities, people of high social status (court noble, samurai family and Buddhist monks) were taken to major gokenin (an immediate vassal of the shogunate in the Kamakura and Muromachi through Edo periods) during the time of the Kamakura bakufu (Japanese feudal government headed by a shogun), and so this became a custom under the Bukeho in the samurai society in the Kamakura and Muromachi periods.
中世・近世には拘禁施設が不十分であること、身分が異なる者を同一施設に拘禁することは身分制度の建前上不適切とされたことを理由として身分が高い者（公家・武家・僧侶）を有力な御家人のもとに預けることが鎌倉幕府において行われており武家法の慣例として武家社会で行われてきた。