He was exposing her heart motive. (as he always does)
She let him know that it was his time, without directly saying it.
Then, left to dwell on it, and what the miracle would result in, Jesus did it.
If it was the will of the Father, Jesus always did it.
So he did it.
Are you subordinationalist, or do you believe in the Trinitarian God of Christianity?