Not the person you're responding to, but that's uncalled for.
There are many variables that go into a child's development. The parents are merely one of them. They can do their best and things can still go south.
Obviously “home life” encompasses many things like parental involvement, stability of family relationships, socioeconomic status, etc. And it’s not the only factor of course.
So the question is hardly uncalled for IMO. Could have been worded in a less accusatory tone though! The person was pretty rude.