There's more to it than that. It's not just about a professional advantage - it's about company cultures that are toxic toward people with families.
This quote for example: 'I’ve asked David Wong, working in the cryptocurrency team at Facebook, what would be the best way to be noticed by Facebook? He answered: “Side Projects” and “Blog”.'
To many people with kids, that reads: Facebook doesn't want to hire engineers with families, because the things they care about from folks are diametrically opposed, in many cases, to the time required with children.
I absolutely think that if you have the time and flexibility you should use it. But there are (and should be) other ways to stand out to companies or to create value that don't involve side gigs outside of the normal work day.