Might also be the additional social interaction (the kid is a human, even if a small one). I think many people felt this during the pandemic and its lockdowns.
I know some people that got dogs (and kept them thankfully). Having someone in your life who's consistently happy to be in your presence is a pretty good antidepressant.