A - Thanks for the question. First a bit of background on why there is an obligation to attend Mass in the first place. The Catechism says:
2180 The precept of the Church specifies the law of the Lord more precisely: "On Sundays and other holy days of obligation the faithful are bound to participate in the Mass." "The precept of participating in the Mass is satisfied by assistance at a Mass which is celebrated anywhere in a Catholic rite either on the holy day or on the evening of the preceding day."
2181 The Sunday Eucharist is the foundation and confirmation of all Christian practice. For this reason the faithful are obliged to participate in the Eucharist on days of obligation, unless excused for a serious reason (for example, illness, the care of infants) or dispensed by their own pastor. Those who deliberately fail in this obligation commit a grave sin.
2182 Participation in the communal celebration of the Sunday Eucharist is a testimony of belonging and of being faithful to Christ and to his Church. The faithful give witness by this to their communion in faith and charity. Together they testify to God's holiness and their hope of salvation. They strengthen one another under the guidance of the Holy Spirit.
2183 "If because of lack of a sacred minister or for other grave cause participation in the celebration of the Eucharist is impossible, it is specially recommended that the faithful take part in the Liturgy of the Word if it is celebrated in the parish church or in another sacred place according to the prescriptions of the diocesan bishop, or engage in prayer for an appropriate amount of time personally or in a family or, as occasion offers, in groups of families."
The answer is given in paragraph 2181 of the Catechism. So, care of infants can be a reason for not attending mass. But, we must try to remember that all are welcome in God's house and should not stay home with an infant, except for a good reason.
Missing mass is not something we should take lightly. The mass gives us access to our lifeline to heaven - the Eucharist.