Prophethood is divinely bestowed through Allah’s choice and grant.
An individual's worship and austerity cannot produce prophethood. Allah Himself chooses those entrusted with the prophetic office. This is one reason for the Prophet's rank above a saint.
Sainthood may involve devotion, faith and obedience, but it does not amount to acquiring prophethood.