The judge decided to make him pay because he painted over them before the previous ruling came in place. There was like a law that if the art attracted people or something like that, that you needed a permit before painting over it. The guy painted over it before he got the permit (which he did get btw) and thats why the judge ruled in favor of the artist.
But continue to get upset because you dont understand the laws.