Education is about developing sustained understanding and skills that can be reliably applied over time.
A student who crams for and performs well on a final exam hasn't necessarily developed the deep, lasting comprehension that comes from regular engagement with the material.
Education at China is the way you mentioned, students just learn for exam, them learned nothing but exam