The Church and the parents would deny a child the priceless grace of becoming a child of God were they not to confer Baptism shortly after birth.
I will raise a question: what if the parents show no inclination to raise the child as a Catholic? Or show in a manifest manner that they have little or no clue what that means? Plus, they resist instruction?
What if two gay guys --- baptized Catholic ---who have contracted some form of para-matrimony, come in with their adopted infant and want a baptism for the purpose --- as the priest suspects --- of forcing the acceptance of their disordered pseudo-marriage?