Governments are in charge of creating legislations, whereas courts are made to impose them.
There are different systems and structures which play an important role in society. An example of one of these would certainly https://harmonynksf030339.blogdigy.com/learning-more-about-the-legal-field-currently-49842189