First and foremost, it is harder to teach responsible use if they are banned.
Secondly, confiscating a phone is seriously detrimental to a poor person that saves up for their kid's phone and can have a detrimental effect on their out-of-school life. I remember my school banning phones back in 1996. Poor kids didn't have them back then, but the few kids that did have them generally used them to call their parents to be picked up after school activities and/or to check in with their parents after school. These same kids suddenly needed money for pay phones as we weren't allowed to use the office phones. I highly doubt schools even have the pay phones any more.
But more importantly, kids still have online presence outside of school and banning phones does nothing to prevent kids from reporting their schooltime bullying after school. It isn't like phones are the root of bullying.
This is so trivially obvious I presume you are merely unaware that this doesn't actually work this way. The second the parent shows up the property must be returned.
There is no legal issue. E.g. this happens to people in the army (and conscription is legal under US law), who are not allowed to have unauthorized communications equipment with them.
Conscription is legal, the military can send you to die taking a hill ergo it is legal for the government to kill people without their consent. See how silly that line of logic was?
Kids don't give up all civil rights by going to school. This has been established.
You are correct they have to return the phone to the parent though, but they can certainly ban phones in the classroom.