It is because in China, the native land of ritsuryo, only Confucianism (=Myogyodo) was recognized as the study of worthy men and the other studies including law were recognized as Hogi which were regarded as less worthy and the ritsuryo legal codes in Japan were affected by such a trend.
これは、律令の母国である中国において、儒教（＝明経道）のみを君子の学問として、法学を含めたその他の学術を方技として扱って学問としての価値を認めない風潮があったことに日本の律令法も影響を受けたためと考えられている。