Retirement tax questions

So she gets Social Security credits for babysitting her own children in the home that they all share? That makes no sense.