That seems more like a tradition of men. I do not see how that is even scriptural. One ought to believe in Jesus Christ before they decide on being baptized. An infant hasnt the capacity to believe with their whole heart that way.
I mean, Philip preached Jesus Christ to that Ethiopian eunuch in a chariot
Acts 8:36 And as they went on their way, they came unto a certain water: and the eunuch said, See, here is water; what doth hinder me to be baptized?
Acts 8:37 And Philip said, If thou believest with all thine heart, thou mayest. And he answered and said, I believe that Jesus Christ is the Son of God.
So he asks, what doth hinder me to be baptized?
And Philip said, " If thou believest with all thine heart, thou mayest (be baptized)
And he made a profession of faith, " and said, I believe that Jesus Christ is the Son of God"
Acts 8:38 And he commanded the chariot to stand still: and they went down both into the water, both Philip and the eunuch; and he baptized him.
Acts 8:39 And when they were come up out of the water, the Spirit of the Lord caught away Philip, that the eunuch saw him no more: and he went on his way rejoicing.
Which is in accord with Jesus said
Mat 16:16 He that believeth and is baptized shall be saved; but he that believeth not shall be damned.
As Philip said, If thou believest with all thine heart, thou mayest (be baptized)
I just don't know how an infant can believe in Jesus Christ with all their heart yet, or see an example of infant baptism in the scriptures.