Originally, Daigakuryo in Japan was a system that was modeled after the Kokushikan (an educational system in China) of the Tang Dynasty, but the Confucian scholars, who were the main managers of Kokushikan, were strongly anti-Buddhist because shaving the hair which were given from the parents and secluding oneself in a temple, and leaving ones parents was against the principle of 'ko' (serving well to one's parents), quoted in "Kokyo" (The book of filial piety).
元来、日本の大学寮は唐の国子監をモデルとした制度であったが、国子監の運営の中心にあたっていた儒学者は『孝経』などを引用して僧侶は親から貰った頭髪を剃り、親を捨てて寺院に籠るのは「孝」に反するとして、強い排仏意識を有していた。