It is also hard to evaluate university teaching because there are no benchmarks for that (compared with high school, for example), and it is hard to judge if teaching is good from student feedback. You can only know if someone fucked up or did really well, which are outliers.
There are other issues as well. Professor IMO is a ridiculous job, you are supposed to be an expert in the field, be a researcher, be a manager, be a teacher, be a salesman, all at the same time. There are people who can excel in all these, but these are probably just outliers. It doesn't help when PhD training doesn't train you to be a proper manager and teacher. While there are some teaching training, I think we are not really held to a high enough standard. E.g. One can pass the teaching course if they just show up and spend some time, even though their teaching is horrible.