In the Baptismal Rite, the priest already asks the sponsors, who answer for the baby:
Priest: Do you wish to be baptized?
Sponsors: I Do
What do you suppose happens next?
If you guessed the baby actually gets baptized with water you'd be correct!
If you guessed that was good enough they all could leave immediately after answering, you'd also be correct? No.