It is the duty of the airline staff at the checkin counter to check that the passenger has the right visa for their destination. In some countries (probably not in the US)the immigration official at departure also checks this. This is supposed to be followed all over the world. So the airline staff had failed in their duty. If they had been alert the child would not have been allowed to leave the US in the first place.