I don't think it is only their own problem. Many people in school simply cannot recognize when doing the homework is necessary to learn the material versus when they already sufficiently understand it. Good teachers actually teach students how to learn effectively, and can help recognize how a student learns best.
It seems that the prevalence of homework => test in schools today is a result mainly of larger class sizes requiring the teacher to make compromises for students with varying levels of ability, motivation, and parental involvement.