I have a BS EE, my day job now is lower level software/firmware - almost entirely with Linux these days but have done a fair share of bare metal, too. My favorite course in university was my 2nd year circuits course, the professor who taught it had a research grant to study how to better teach electrical engineering to undergrads, and it showed. I vividly remember demonstrations and labs we did in that class even 20 years later.
I imagine part of the problem is there's just fewer EEs than there are CS grads, so the EEs who end up teaching might be the best at that in their field but since the field of CS grads is so much larger you generally get better teachers in CS. I feel there's also been a huge push to make CS approachable over the past 30 years and it shows, it's easy to find great teachers both online and in universities for CS. It's much harder to find good teachers for EE.
Knowing EE or CS does not make a good teacher. Being a good teacher is significantly more than simply knowing the material.