There is both pain and joy in giving birth. In fact, most husbands are shocked at the sight of so much blood. On the other hand, the intensity of the joy felt when parents see their child for the first time would be overwhelming. The whole birth can be summarised into a single line: a terrifying, tear-filled paradox.
The same is true for Jesus. His whole life is one great paradox. A mixture of joy and suffering. The Gospel is filled with numerous accounts of Jesus healing and taking the pains of people away.
At the end of the Gospels however, we realise that Jesus’s mission is not to take away the sufferings of people, but to take them upon Himself. Jesus did not come to be served, but to serve (c.f. Mk 10:45).
Seen in this light, the miracles of Jesus aren’t ends in themselves. They are signs that point forward to the ultimate overthrowing of suffering and death during His passion, death, resurrection and final coming in glory.