Governments are accountable for producing laws, whereas courts are developed to enforce them.
There are different systems and structures which play an important function in society. An example of one of these would be https://cormacruiw445967.ageeksblog.com/32354545/researching-government-structures-in-modern-times