The teacher is being encouraging and hoping that everyone does very well. To get 100% is to get it all. If a test is being given, then everyone would answer everything correctly and receive a grade of 100 with no deductions for making mistakes.
Another saying is "to give 100%", which means to try or do your best, an all out effort.