These are the de facto rules of living in society. You may criticise the rules themselves but you can't really criticise teaching the rules, you have to give kids the tools they need to navigate in a society, once they know what the default rules are they're free to expand and/or break them.
School is, for the vast majority of kids, a good framework for life.