The foundation of salvation is:
Luke 10:25-28 And, behold, a certain lawyer stood up, and tempted him, saying, Master, what shall I do to inherit eternal life?
26 He said unto him, What is written in the law? how readest thou?
27 And he answering said, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy strength, and with all thy mind; and thy neighbour as thyself.
28 And he said unto him, Thou hast answered right: this do, and thou shalt live.
Anything we do to be saved must accomplish LOVING GOD with our WHOLE HEART.
Baptism was a place to DIE(to your will and to dedicate your life to serving GOD)
It is a dedication to LOVE GOD with your whole life!
Accepting JESUS as LORD and SAVIOR involves the same principle.
This is a decision that a person commits to.
Infants cannot make this decision. The children's parents were the children's covering for salvation until they were old enough and became responsible for their own decision to dedicate their life to Christ.
I believe it was at 13 years old when a Jewish child became accountable to the law.