Original: The mosque was built on a site adjacent to Muhammad's home, and as Muslims believe  that prophets must be buried at the very same place they leave this mortal world, Muhammad was thus buried in his house.
Simplified: Muslims believe  that Prophets must be buried at the very same place that they die.