When we see scholars in yeshivas, it doesn't contradict the Mishnah, but it's because they have the income from their learning institution, and it has been agreed with the wife who tells him that she wants him to learn the Torah for the next few years. 