God's goal is our salvation, and everything else, including miracles, aims toward that.
Jesus performed miracles that we might believe in him.
Jesus restored the leper to a community of faith. As Catholics, we care a lot about the communal nature of our faith.
Jesus' purpose was to preach. The miracles he performs just helps us to believe him.