Christianity and Hinduism revere their religious figures as gods or incarnations of God
According to Islam, all these righteous persons were mortal, human prophets of God, like Muhammad, having the same needs that every human being has. They all eventually died, as everyone must.
There are several reasons why they have come to be revered by their followers as 'gods'. One is that their words were misunderstood by the later generations, who mistook their figurative expressions in a literal sense. Another is that the details of their lives were not preserved accurately, and therefore a great many myths have grown up around them, and their works and deeds have been much exaggerated.