The reason dance students wear triangles instead of boxers is to reduce constriction, and to do movements on stage with a larger range of motion, which would definitely be restricted if they wore boxers.
And some dance jumpsuits don't have to wear panties, like ballet jumpsuits, and panties usually have marks on them that can cause unnecessary embarrassment. There are also some panties specifically for dance students to wear when wearing dancewear.