In the Quran a person turns directly to Allah: He is near, answers those who call Him, and is nearer than the jugular vein. There is no confession to a human being and no ordination that gives anyone the power to absolve. The Quran asks who forgives sins except Allah. For this reason a Muslim can pray in a park, at home or in a mosque and no priest is needed for a prayer to be valid.
The Prophet Muhammad ﷺ taught that the people should be led in prayer by the one who knows the Book of Allah best; if they are equal, then the one most knowledgeable of the Sunnah, and so on. He also told a group of visitors who were returning home to teach their people and pray, and that when the prayer time comes one of them should call the adhan and the eldest should lead. So the imam is chosen for knowledge and character, not by a special rank.
Muslims do respect scholars (ulama) who spend their lives studying the Quran, hadith and law, in the same way that people respect doctors for medicine. A scholar can teach, give a ruling with his evidence and counsel, but his word is tested against the Quran and the authentic Sunnah, and he has no spiritual authority over anyone's soul. Among Shia Muslims, the word imam also has a particular meaning for the leaders from the Prophet's family; that is a different topic.