Some of the occupants of the throne were themselves scholars.  This can be understood by knowing the legacy of some royal people....