Chapter 21 is an epilogue to the events that came previously. Thomas' declaration was what John wanted his readers to believe. This chapter gives us a few extra things that might be on the mind of the reader. How was Peter restored to ministry? Was John never going to die? John gives us this epilogue to give some of those answers.