Why do some kids crash & burn yet others succeed?

Some students get a taste of freedom and go a little crazy at first. Some are able to reign it in once grades start coming in as a wake up call. On the other hand, I’ve known kids who party very hard and still do well academically. Never understood how they do it but they do it.