Our son did have an ostomy after birth.
He was born with meconium ileus and it is very common that with a bowel resection (where they have to remove some of the bowel) which is sounds like your little one likely had to have to have a temporary ostomy.
The primary reason is that immediately after surgery the remaining bowels are not in any condition to try to digest and manage food well. In MOST cases after about a month or so they would try to do a 2nd procedure called a take-down where they would remove the ostomy and reconnect everything.
In the interim, they would likely start the enzymes to try and give your daughter a chance to start tolerating food which is a requirement for the take-down to occur.
PS: While I hate to see someone join given the reason we are all here, welcome to the site and feel free to ask anything you can think of.