Even great prophets have need of repentance, which is perhaps why they are able to teach the power of the Atonement with such conviction. Alma taught people privately, away from wicked King Noah, after having become a consecrated vessel.