There are three teachers in my family, there are many more in my extended family. I cannot deny that teaching attracts a weird bunch, but the environment is much more to blame.
A minority of those teachers I know are dedicated, hard working, even to their own detriment; they love imparting knowledge.
Others are just following the study plan year after year, not really invested in a low-paying job, maybe they enjoy teaching but don't feel like doing an extra effort for a meager pay. They'd be out there looking for a better job if teaching wasn't so easy.
The rest are trying to do as little work as possible, and being unethical is not out of the question. They're actually harmful to their students.
In my country, teachers have unions, and those unions have enough clout to promote vices like selling/bequeathing of a job when you retire, qualifications notwithstanding; rejection of continual education for teachers, etc. Their unions are big enough to influence elections, and they use that influence to pressure/support politicians.
I guess what I'm saying is that everyone deserves a decent salary, but simply increasing a salary won't solve all the other grave issues with education.