Because that’s what being a parent is.
As a parent, you are there for your child from their first breath until their last or until your last, whichever comes first. Nothing is more important than your child.
If you aren’t willing to accept that, then please don’t have kids.