Here is from the Haydock Commentary
Ver. 49. I must be about the things that are my Father’s? By these words he shewed, that not St. Joseph, but only God, was his father. (Witham)
While Jesus does recognize Joseph as a father figure he intend to make clear who HIS father is. Mary already knows who the Father is.
her is verses 50-52 from the Haydock Commentary
Ver. 50. They understood not, &c. That is, knew not when, or by what means, Christ designed to make himself known to the world. (Witham)
Ver. 51. Was subject to them. Astonishing humility! which the Son of God was pleased to teach by his example, as also obedience to parents. (Witham) — The evangelist relates nothing of our Saviour from the age of twelve till the age of thirty, except that he was subject to St. Joseph and the blessed Virgin. The divine Spirit shewing by this, that nothing is so great and amiable in Christians, as ready obedience to the directions of their superiors. (Barradius) — All children are hereby taught what subjection and obedience is due from them to their parents.
Ver. 52. Not that he was wiser at any future period of his life, than he was at the moment of his conception, but this is said, because he chose to manifest increasing signs of wisdom as he increased in years. — In the same manner also he increased in grace, by displaying, as he advanced in age, the gifts of grace with which he was endowed; and by this excited men to the praise of God, from the consideration of favours God had bestowed upon him; and thus he conduced to the honour of God, and the salvation of men. (St. Gregory) — The sun, always equally brilliant in itself, is said to increase in splendour, till it has reached its meridian brilliancy.
This simply stating that Jesus intends to do his Father’s will an honor Mary and Joseph as the commandments. Mary did no wrong or was corrected, but Jesus recognizes his Father