Within Marvel or at least Thor's corner of Marvel Thor is a bona fide god and Odin is the creator of Earth and humanity. One of Odin's mythological titles was "Lord of Midgard." From at least a religious perspective, gods are usually considered higher beings with authority superseding mortal authority. An reason given for why superheros do not kill or take certain actions is they are not gods. They are not supposed to decide who lives or dies or overrule local governments.
Yet, Thor is a god. He is the son the Earth Mother Gaea and stand to inherit all authority from Odin and Gaea. He is usually respectful of mortal law, but now much does it really apply to him?