Easily - being baptised as an infant does not guarantee entrance to heaven (unless the infant dies while still an infant - hence the reason for infant baptism)
The Church teaches that you must be baptised in order to go to heaven. That does NOT mean that baptism guarantees entrance to heaven.
If you must be baptised to enter heaven and you wait until the person is older to baptise them - what happens to the person who dies as an infant if they have not been baptised?
That is why the Church baptises babies.
That is why the Church baptises babies.
So what do you think happens to the person who dies as an infant if they have not been baptised?