Why are people cruel to their children but soft to their grandchildren?

Why people punish their children for some offences, but don't allow their grandchildren to be punished for the same offences? What kind of double standard is this? Also how can you love your grandchild more than your own child? I could never understood this