The Germanic law underpinning seems to be that literally anyone may, indeed must make an arrest, with the lynch mob being at the less -
civilized end of the continuum of detaining miscreants, and acting under the authorization of a justice of the peace being at the more - civilized end.