Looking at the story of Lazarus, we see that sometimes God allows pain for a purpose. He is still loving us.
Throughout John, he aims to show a non-believing world that Jesus is the long awaited Messiah. In John 10 Jesus declares he is God’s Good Shepherd, fulfilling prophecy.