Laws are written by the powerful and their representatives. Who then do the laws, generally speaking, protect?
As a broad example, it is illegal to trespass on a person's land, because those who own land are in a position to create a law to make this fact so.
If I may interject a quote that has remained with me for a long, long time now, I remember once an old issue of World's Finest, a comic book that features Superman, Mr. Law & Order for the American Way, and Batman, the Dark Knight of Justice. In the particular story, the two superheroes were fighting a crime ring. At one point, the crime guys are outside U.S. territorial waters and object that Batman is dragging them back inside the two-mile limit to face the long arm of the law. To this complaining, Batman says:
"I am more concerned with Justice then I am with the law."
I have remembered that quote for about 30 years now.