For example, when we play games, we may only bring a dog at first. If we can't improve our skills, it is likely to be destroyed by others, so we must try our best to improve our skills. University is where we improve our skills. Some professional knowledge can only be applied to society after learning in school. This order cannot be reversed. If you reverse these two orders, you will have to pay a lot of tuition.
Let's give the simplest example. We studied accounting in college. In society, only accounting companies will find your diploma, and no accounting company will tell you to learn accounting from me, and then I will give you money. Just kidding.
So, the teacher is right. When you are at school, you must put all your energy into your study. School is a place to recharge and arm the mind, and it is also the capital to work hard in society in the future. Although society is also a continuous learning environment, it is different from studying in school. One can provide you with knowledge and the other can provide you with experience.