What is the purpose of the dress code?
You'd have to ask BJU that one. A generic answer would be the same reason businesses have dress codes.
The purpose of the dress code is to provide an outward representation of an inner belief system. Clothing is a language and they want the language of the clothing to correspond to the language of the school's doctrine so as not to seem hypocritical or paradoxical.