It's to plant the belief that you are part of a certain community in your head (communism - you heard that word) It's easier to control a community represented by the believers that they are a part of one mechanism. Many clubs and companies use the uniforms patterns to get from their members what the owner wants. So if you are talking about schools owned by government, that means they want you to do or to be something for them.
Dominik