Looking at the context (i.e. the sentences exist in a children's book), I believe definition number one would be the correct one; doctors and teachers are professions in which the person doing it is helping other people (their patients and students).