I’d say irrespective of how good a school is, most of it has to do with parental influence and peer influence. I went to a good public school, but I probably learned mostly from good parents and a good deal from peer pressure to do as well.
I guess I didn’t have friends who only wanted to be a mechanic for example