The dress code, more specifically, likes to target girls as their victims. In an article from Time.com, a high school girl recalled an incident in which she was told that the policy was created because there are male students and teachers on campus, bras make people uncomfortable, and the administration does not want boys harassing girls.
This teaches girls all over the world that their bodies are sexualized and that it is