Amusing grotesques like this one are applied for decorative purposes. They also have an apotropaic (turning away evil) function, as evidenced by their placement at the corner junctions, which are ritually dangerous.