In the agreement with the United States, there's an exception for unaccompanied children. I think Canada could explain that it's because of this exception.
That said, this exception does not apply to other children, such as those who are with their parents. Also, one of the problems with the U.S. is that detention of migrants is much more frequent and much more severe than here.