First, because he suffered and was able to remain without sin we can be encouraged that we can stand up under trials and sufferings. If Jesus never suffered, we would not be be able to connect with him in our difficult times.
Second, we are shown that trials and suffering are a key part of following Jesus’s example. Knowing that these things will happen allows us in our sinful state to prepare for difficulties and not be surprised when they happen. It shows us that the physical life is filled with suffering and does not end when we make Jesus Lord of our life.