James I viewed kings as being justly called gods due to the divine right of kings being a doctrine that attributed a monarch's legitimacy to God.
James I believed that kings are "justly called gods" because of the concept of the divine right of kings. The divine right of kings was a political and religious doctrine that asserted a monarch's legitimacy and right to rule as coming directly from God. This belief system elevated kings to a status akin to that of gods in terms of authority and accountability.
https://brainly.com/question/30341091