>> Most teachers are not good, so self-study is essential.
It's not even about teachers being good or bad. It's about something called "illusion of competence". Basically, everything seems easy while teacher is explaining it on whiteboard, but when facing similar task on your own, outside of the classroom you are completely lost, don't know where to start. Homework helps dispell that illusion.