The Pāli canon: heretical heritage?

I don’t think it’s accurate to say most. But in any case, leading the sangha was literally his job. And part of that job is reprimanding monks. See MN 67 Cātumā