I had a similar experience when first entering fatherhood while working from home. I got better at development! The numerous forced breaks in attention, even when they seemed inconvenient at the time, allowed me to step back and think about the bigger picture of what I was doing. It pushed me to “measure twice and cut once” more often which reduced wasted time when I was sitting down to code. Also, the general time constraints involved with parenting put lots of hard-stops on programming sessions, forcing me to be very conscious of time spent working.
I worked longer and harder hours during those early days but my productivity peaked.