She must have been close to have been told about a disgracing issue.
Or was it simply the time for Jesus to perform a public miracle and it came about in this manner?
Luke 3:23 NET So Jesus, when he began his ministry, was about thirty years old. He was the son (as was supposed) of Joseph, the son of Heli,
Jesus was waiting till He was thirty, following law. But God was telling Him that things were going to be different, that from now on He would be controlled by displays of faith.
Faith makes Him start his ministry before He is thirty, where Law insists He wait.
John 2:4-5 NET Jesus replied, “Woman, why are you saying this to me? My time has not yet come.” His mother told the servants, “Whatever he tells you, do it.”
Faith makes him minister to Gentiles, whilst Law requires he attends only to the house of Israel.
Matthew 15:24-25 NET So he answered, “I was sent only to the lost sheep of the house of Israel.” But she came and bowed down before him and said, “Lord, help me!”
Lack of faith shuts down ministry, where Law promises unconditional blessings.
Mark 6:4-5 NET Then Jesus said to them, “A prophet is not without honor except in his hometown, and among his relatives, and in his own house.” He was not able to do a miracle there, except to lay his hands on a few sick people and heal them.
Romans 10:4 NET For Christ is the end of the law, with the result that there is righteousness for everyone who believes.
These are all foreshadowing of the end of the Mosaic Law.