were fresh, handled properly, and thoroughly cooked, leaving the shells on would generally be an acceptable cooking method. Leaving the digestive tract intact is also not automatically a safety violation.
However, if the children were too young to manage the shells safely, removing the shells before serving them would have been a reasonable precaution.
If the mother was simply uncomfortable with the appearance or preparation, she could decline the shrimp or ask for a peeled and deveined portion. Personal food preferences deserve respect, even when other family members do not