Not just to Mohammad, but to Bahaollah and Mirza Ghulam Ahmad too (and many others whom you can find on Wikipedia lists of claims of being Gods, Jesuses, messengers, manifestations, mahdis, prophets). As I said it is a continuing scheme. There will be more in future.
Simple, they had desires...