I developed very bad habits as a child. I could screw off, read SF in class, barely study, and still be the best in science. But then I went to university with others like me, and it was a rude awakening ;)
Math and physics majors totally kicked my ass. But at least I was still near the top in chemistry :) And I discovered that engineering math and coding made a lot more sense than, for example, number theory.