The phrase "the doctor doesn't knock at the door, but the teacher doesn't drop by" means that the doctor doesn't go to the patient's house unless he has to, and the teacher doesn't go to the student's house until he has nowhere to study.
This sentence also expresses respect for medicine and education. I hope people will only seek the help of doctors and teachers when they need it, and don't disturb their lives at will.