Christ sees the yearning in our hearts, those who really want to be saved and be healed from the heart, are the ones that God takes into account and does the miracle. That's why he asked: Do you want to be healthy ?, He could see his desire and disposition, and then healed him.