Testimony and witness are important in encouraging those under intense persecution because the alternative, hiding one's faith, is to forsake one's faith.
Jesus as the faithful witness should encourage us because he has overcome sin and death. This means that any type of persecution in this life, even to the point of death, is not final. We have eternal victory in Christ.
It is often actually easier to compromise when the stakes are not as great. Under intense persecution, there is a sense in which you have nothing more to lose.