The flogged also have rights
In the past wrong doers of all sorts were punished by flogging. Even today, it is still a form of punishment in some countries. Sometimes the person being flogged was not always guilty of the alleged offence. Or the offence may have been simply because he dared say or do anything contrary to powerful interests.