OK, but how does this apply to infants who die without the Sacrament of Baptism? That's what we're considering here.
Infants aren't at the age of reason, so now matter how much grace God gives (except for the grace of baptism), they can't profit from it (assuming they die before reaching reason). They are the exception to the rule.
God WILLS all men to be saved, but He sometimes withholds His grace, out of mercy, for those whom He knows will reject it and therefore merit a greater punishment.
I want to give a homeless man $1,000 out of compassion. But I know that he's addicted to drugs, and it's highly likely (God knows with certainty of course) that he's going to end up dead from an overdose if I give him the $1,000. So while I will to show him the mercy of giving him the money, it's mercy also that inspires me to withhold it.
This is true, for the present situation of this hypothetical homeless man. But...before he was addicted to drugs, he was given all kinds of graces to resist, which he did not. Had he resisted, and had he followed the natural law, he may have found Catholicism and converted. But he didn't.
Just as you wouldn't give this man $1,000 for fear he'd abuse the gift, so God would not give him the grace of the gospel/Church, for the man would reject it.