Lawson had the pedagogic instinct; whenever he found anything out he was eager to impart it; and because he taught with delight he talked with profit. Philip, without thinking anything about it, had got into the habit of sitting by his side.
Of Human Bondage by W. Somerset Maugham
Does the 'profit' here mean 'advantage'? If so, whose advantage does this sentence mean? talker or listener?