There is no law for that, they just do it because of prudent and they don't know better. But, a letter stated that you entrust your parents to take care your child will be helpful in this kind of case, you need to notarize that letter though.