Why was the Dome of the Rock Built in Jerusalem?

Some speculations about one of the city's greatest mysteries