When you get married, you're not just making a commitment to your spouse. You're making a commitment to God, to stay loyal to your partner and to serve them. Your vows aren't just for your partner, they're for God too. This is why it's so hard when you fail in your marriage, because it's not just a failure to your spouse, but a failure to your commitment to God and yourself.
When you have a child, your commitment is to them above all else. You're making a promise to be their father or mother, to stand by them, to lead by example and to show them what the right thing to do looks like. So, when you bring a child into this world, remember that your commitment is to them and to being the best parent you can be.