He's saying this to make a point...and it's a point well made.
He has to do it, under existing laws that Democrats enacted. He has to release them after holding them 20 days, and a 9th circuit judge forbid him from releasing them back into Mexico. Can't hold them, can't shove them back over the border, what are ya gonna do?